fix(config): notify which vars are missing
This commit is contained in:
parent
e71590b9fb
commit
03238d10bf
2 changed files with 4 additions and 1 deletions
|
@ -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'
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue