File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -135,4 +135,4 @@ module.exports = function(grunt) {
135
135
// For Heroku users only.
136
136
// Docs: https://github.com/linnovate/mean/wiki/Deploying-on-Heroku
137
137
grunt . registerTask ( 'heroku:production' , [ 'cssmin' , 'uglify' ] ) ;
138
- } ;
138
+ } ;
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ var cluster = require('cluster');
18
18
if ( ( cluster . isMaster ) && ( process . execArgv . indexOf ( '--debug' ) < 0 ) && ( process . env . NODE_ENV !== 'test' ) && ( process . execArgv . indexOf ( '--singleProcess' ) < 0 ) ) {
19
19
//if (cluster.isMaster) {
20
20
21
+ console . log ( 'for real!' ) ;
21
22
// Count the machine's CPUs
22
23
var cpuCount = require ( 'os' ) . cpus ( ) . length ;
23
24
@@ -43,9 +44,10 @@ if ((cluster.isMaster) && (process.execArgv.indexOf('--debug') < 0) && (process.
43
44
{
44
45
workerId = cluster . worker . id ;
45
46
}
46
- mean . serve ( { workerid : workerId /* more options placeholder*/ } , function ( app ) {
47
- var config = app . config . clean ;
48
- var port = config . https && config . https . port ? config . https . port : config . http . port ;
49
- console . log ( 'Mean app started on port ' + port + ' (' + process . env . NODE_ENV + ') cluster.worker.id:' , workerId ) ;
50
- } ) ;
47
+ // Creates and serves mean application
48
+ mean . serve ( { workerid : workerId /* more options placeholder*/ } , function ( app ) {
49
+ var config = app . config . clean ;
50
+ var port = config . https && config . https . port ? config . https . port : config . http . port ;
51
+ console . log ( 'Mean app started on port ' + port + ' (' + process . env . NODE_ENV + ') cluster.worker.id:' , workerId ) ;
52
+ } ) ;
51
53
}
You can’t perform that action at this time.
0 commit comments