mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 13:07:08 +00:00
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.