Skip to content

Commit

Permalink
updating debug information to support https mode reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
lirantal committed Nov 26, 2014
1 parent e2b91b0 commit 2786c95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ module.exports = function(db) {
});

if (process.env.NODE_ENV === 'secure') {
// Log SSL usage
console.log('Securely using https protocol');

// Load SSL key and certificate
var privateKey = fs.readFileSync('./config/sslcerts/key.pem', 'utf8');
var certificate = fs.readFileSync('./config/sslcerts/cert.pem', 'utf8');
Expand Down
3 changes: 3 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@ console.log(chalk.green(config.app.title + ' application started'));
console.log(chalk.green('Environment:\t\t\t' + process.env.NODE_ENV));
console.log(chalk.green('Port:\t\t\t\t' + config.port));
console.log(chalk.green('Database:\t\t\t' + config.db));
if (process.env.NODE_ENV === 'secure') {
console.log(chalk.green('HTTPs:\t\t\t\ton'));
}
console.log('--');

0 comments on commit 2786c95

Please sign in to comment.