fix(config): notify which vars are missing

This commit is contained in:
diced 2021-08-28 21:41:04 -07:00
parent e71590b9fb
commit 03238d10bf
No known key found for this signature in database
GPG key ID: 85AB64C74535D76E
2 changed files with 4 additions and 1 deletions

View file

@ -29,6 +29,9 @@ services:
- UPLOADER_EMBED_ROUTE=/a - UPLOADER_EMBED_ROUTE=/a
- UPLOADER_LENGTH=6 - UPLOADER_LENGTH=6
- UPLOADER_DIRECTORY=./uploads - UPLOADER_DIRECTORY=./uploads
- UPLOADER_ADMIN_LIMIT=104900000
- UPLOADER_USER_LIMIT=104900000
- UPLOADER_DISABLED_EXTS=
volumes: volumes:
- '$PWD/uploads:/zipline/uploads' - '$PWD/uploads:/zipline/uploads'
- '$PWD/prisma:/zipline/prisma' - '$PWD/prisma:/zipline/prisma'

View file

@ -57,7 +57,7 @@ function tryReadEnv() {
let value = process.env[envValue.val]; let value = process.env[envValue.val];
if (envValue.required && !value) { if (envValue.required && !value) {
Logger.get('config').error('there is no config file or required environment variables... exiting...'); Logger.get('config').error(`there is no config file or required environment variables (${envValue.val})... exiting...`);
process.exit(1); process.exit(1);
} }