7
7
// use this if you want to recursively match all subfolders:
8
8
// 'test/spec/**/*.js'
9
9
10
- process . env . NODE_ENV = process . env . NODE_ENV || 'development' ;
11
- var config = require ( './lib/config/config' ) ;
12
-
13
10
module . exports = function ( grunt ) {
14
11
15
12
// Load grunt tasks automatically
@@ -29,7 +26,7 @@ module.exports = function (grunt) {
29
26
} ,
30
27
express : {
31
28
options : {
32
- port : config . port
29
+ port : process . env . PORT || 9000
33
30
} ,
34
31
dev : {
35
32
options : {
@@ -91,7 +88,7 @@ module.exports = function (grunt) {
91
88
'{.tmp,<%%= yeoman.app %>}/scripts/{,*//*}*.js' ,
92
89
'<%%= yeoman.app %>/images/{,*//*}*.{png,jpg,jpeg,gif,webp,svg}'
93
90
] ,
94
-
91
+
95
92
options : {
96
93
livereload : true
97
94
}
@@ -189,7 +186,7 @@ module.exports = function (grunt) {
189
186
options : {
190
187
nodeArgs : [ '--debug-brk' ] ,
191
188
env : {
192
- PORT : config . port
189
+ PORT : process . env . PORT || 9000
193
190
} ,
194
191
callback : function ( nodemon ) {
195
192
nodemon . on ( 'log' , function ( event ) {
@@ -200,7 +197,7 @@ module.exports = function (grunt) {
200
197
nodemon . on ( 'config:update' , function ( ) {
201
198
setTimeout ( function ( ) {
202
199
require ( 'open' ) ( 'http://localhost:8080/debug?port=5858' ) ;
203
- } , 500 ) ;
200
+ } , 500 ) ;
204
201
} ) ;
205
202
}
206
203
}
@@ -561,7 +558,7 @@ module.exports = function (grunt) {
561
558
'test:server',
562
559
'test:client'
563
560
]);
564
- } ) ;
561
+ } ) ;
565
562
566
563
grunt . registerTask ( 'build ', [
567
564
'clean :dist ',
0 commit comments