Page MenuHomewrite.as

Support changing resource directories
Closed, ResolvedPublic

Description

Overview

Allow admin to configure where templates, static, pages, and keys directories are. Requested by SamWhited in #63.

Background

This will come in handy for packaging the application for various Linux distros, and for WriteFreely.host.

Users

Instance admins

Implementation

Add new fields under config.ServerCfg:

  • TemplatesParentDir
  • StaticParentDir
  • PagesParentDir
  • KeysParentDir

If any of these are blank, default to the current directory.

For the foreseeable future, it's fine to not include these values as part of the interactive configuration process.

TODO: Note in the documentation that a server restart is required when changing these values.

Event Timeline

matt created this task.Jan 10 2019, 5:20 PM
matt triaged this task as High priority.
matt updated the task description. (Show Details)Jan 10 2019, 5:27 PM