Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit 315187e

Browse files
committed
enhancing error message with an actual instruction on how to fix the missing ssl problem when running in prod mode and secured enabled
1 parent 29d264d commit 315187e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ var validateSecureMode = function(config) {
8080

8181
if (!privateKey || !certificate) {
8282
chalk.red(console.log('+ Error: Certificate file or key file is missing, falling back to non-SSL mode'));
83+
chalk.red(console.log(' To create them, simply run the following from your shell: sh ./scripts/generate-ssl-certs.sh'));
84+
console.log();
8385
config.secure = false;
8486
}
8587
};

0 commit comments

Comments
 (0)