Commit Graph

106 Commits

Author SHA1 Message Date
D. Berge
a0faa51602 Fix PREFIX usage 2020-08-10 22:41:37 +02:00
D. Berge
ba9b2e66c7 Add client dist/ final location to .gitignore 2020-08-09 16:47:56 +02:00
D. Berge
ed6b051669 Add DOUGAL_ROOT environment variable support.
When searching for configuration files, we look in the
following places:

1. $DOUGAL_ROOT/etc/
2. $HOME/software/etc/
3. ./software/etc/
2020-08-09 16:43:51 +02:00
D. Berge
36596da46b Add __pycache__/ to .gitignore 2020-08-09 16:43:51 +02:00
D. Berge
a766a4dc6c Let API run with default settings in dev mode.
If the configuration file is not found, either at its
default place ($HOME/etc/www/config.json) or wherever
indicated by the DOUGAL_API_CONFIG environment variable,
create a temporary default config and try to run with it.

On the other hand, if we are in production (NODE_ENV == production)
we exit with non-zero in the absence of a real configuration file.
2020-08-09 10:50:53 +02:00
D. Berge
4c5d29494c Initial commit 2020-08-08 23:59:13 +02:00