We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 202adfe + c8aa2d5 commit 28a9a0cCopy full SHA for 28a9a0c
templates/common/Gruntfile.js
@@ -7,6 +7,9 @@
7
// use this if you want to recursively match all subfolders:
8
// 'test/spec/**/*.js'
9
10
+process.env.NODE_ENV = process.env.NODE_ENV || 'development';
11
+var config = require('./lib/config/config');
12
+
13
module.exports = function (grunt) {
14
15
// Load grunt tasks automatically
@@ -26,7 +29,7 @@ module.exports = function (grunt) {
26
29
},
27
30
express: {
28
31
options: {
- port: process.env.PORT || 9000
32
+ port: config.port
33
34
dev: {
35
@@ -186,7 +189,7 @@ module.exports = function (grunt) {
186
189
187
190
nodeArgs: ['--debug-brk'],
188
191
env: {
- PORT: process.env.PORT || 9000
192
+ PORT: config.port
193
194
callback: function (nodemon) {
195
nodemon.on('log', function (event) {
0 commit comments