-
Notifications
You must be signed in to change notification settings - Fork 2k
Conversation
lirantal
commented
Jul 17, 2015
- On startup fallback to non-SSL mode if no cert/key is present to start in secure mode
- Consistency for the error messages printed out
62f1ff0
to
03b7f6f
Compare
@@ -56,9 +56,9 @@ var validateEnvironmentVariable = function() { | |||
console.log(); | |||
if (!environmentFiles.length) { | |||
if (process.env.NODE_ENV) { | |||
console.error(chalk.red('No configuration file found for "' + process.env.NODE_ENV + '" environment using development instead')); | |||
console.error(chalk.red('+ Error: No configuration file found for "' + process.env.NODE_ENV + '" environment using development instead')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is there a plus sign at the beginning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To distinguish the rest of the startup text information on the screen from actual errors. I couldn't find any other better method for that. I can remove, it's just styling on the console.
LGTM Should we have an option for the user to have the application exit out if the it could not be started with https? If I deliberately set I understand if you all think this would be too opinionated or make the config too complicated, I just wanted to see what people think. |
@jloveland I think wrapping too much logic around it is an overkill. If this is production or anything of real use case, the application will simply start with no SSL mode and accessing it via https:// will fail so it is straightforward and easy to understand that something went wrong there + there are the logs. |
Agreed, thanks!
|
Thanks for the review guys, merging. |