Skip to content

Commit

Permalink
fix server start message for https
Browse files Browse the repository at this point in the history
  • Loading branch information
fyockm committed Sep 3, 2014
1 parent ff357fa commit 10709c6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ var mean = require('meanio');

// Creates and serves mean application
mean.serve({ /*options placeholder*/ }, function(app, config) {
console.log('Mean app started on port ' + config.http.port + ' (' + process.env.NODE_ENV + ')');
if(config.https && config.https.port){
console.log('Mean secure app started on port ' + config.https.port + ' (' + process.env.NODE_ENV + ')');
}
var port = config.https && config.https.port ? config.https.port : config.http.port;
console.log('Mean app started on port ' + port + ' (' + process.env.NODE_ENV + ')');
});

0 comments on commit 10709c6

Please sign in to comment.