Skip to content

Commit

Permalink
fix(config): notify which vars are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
diced committed Aug 29, 2021
1 parent e71590b commit 03238d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ services:
- UPLOADER_EMBED_ROUTE=/a
- UPLOADER_LENGTH=6
- UPLOADER_DIRECTORY=./uploads
- UPLOADER_ADMIN_LIMIT=104900000
- UPLOADER_USER_LIMIT=104900000
- UPLOADER_DISABLED_EXTS=
volumes:
- '$PWD/uploads:/zipline/uploads'
- '$PWD/prisma:/zipline/prisma'
Expand Down
2 changes: 1 addition & 1 deletion src/lib/readConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function tryReadEnv() {
let value = process.env[envValue.val];

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);
}
Expand Down

0 comments on commit 03238d1

Please sign in to comment.