Rearrange filesystem layout, and add configuration files

This commit is contained in:
Alex Cabal 2019-08-23 16:23:26 -05:00
parent 0acc64cb06
commit 8f33a1021c
18 changed files with 590 additions and 57 deletions

View file

@ -29,8 +29,9 @@ const AVERAGE_READING_WORDS_PER_MINUTE = 275;
// No trailing slash on any of the below constants.
const SITE_URL = 'https://standardebooks.org';
const SITE_ROOT = '/standardebooks.org';
const TEMPLATES_PATH = SITE_ROOT . '/templates';
const TEMPLATES_PATH = SITE_ROOT . '/web/templates';
const REPOS_PATH = SITE_ROOT . '/ebooks';
const EBOOKS_DIST_PATH = SITE_ROOT . '/web/www/ebooks/';
const GITHUB_SECRET_FILE_PATH = SITE_ROOT . '/config/secrets/se-vcs-bot@github.com'; // Set in the GitHub organization global webhook settings.
const GITHUB_WEBHOOK_LOG_FILE_PATH = '/var/log/local/webhooks-github.log'; // Must be writable by `www-data` Unix user.