Skip to content

Commit 28a9a0c

Browse files
committed
Merge pull request #121 from zfarrell/port-config
fix(gruntfile): update gruntfile to use port from config
2 parents 202adfe + c8aa2d5 commit 28a9a0c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: templates/common/Gruntfile.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
// use this if you want to recursively match all subfolders:
88
// 'test/spec/**/*.js'
99

10+
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
11+
var config = require('./lib/config/config');
12+
1013
module.exports = function (grunt) {
1114

1215
// Load grunt tasks automatically
@@ -26,7 +29,7 @@ module.exports = function (grunt) {
2629
},
2730
express: {
2831
options: {
29-
port: process.env.PORT || 9000
32+
port: config.port
3033
},
3134
dev: {
3235
options: {
@@ -186,7 +189,7 @@ module.exports = function (grunt) {
186189
options: {
187190
nodeArgs: ['--debug-brk'],
188191
env: {
189-
PORT: process.env.PORT || 9000
192+
PORT: config.port
190193
},
191194
callback: function (nodemon) {
192195
nodemon.on('log', function (event) {

0 commit comments

Comments
 (0)