Skip to content

Commit

Permalink
nitro: use production mode for server when generating view dump and t…
Browse files Browse the repository at this point in the history
…esting references

this should fix #122
  • Loading branch information
ernscht committed Feb 12, 2018
1 parent 8b69a6b commit 0260b6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions generators/app/templates/gulp/dump-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function startTmpServer(port, gulp, plugins, cb) {
server = plugins.liveServer('server', {
env: {
PORT: port,
NODE_ENV: 'production',
},
}, false);

Expand Down
1 change: 1 addition & 0 deletions generators/app/templates/gulp/visual-reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = (gulp, plugins) => {
const server = plugins.liveServer('server', {
env: {
PORT: port,
NODE_ENV: 'production',
},
}, false);

Expand Down
1 change: 1 addition & 0 deletions generators/app/templates/gulp/visual-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = (gulp, plugins) => {
const server = plugins.liveServer('server', {
env: {
PORT: port,
NODE_ENV: 'production',
},
}, false);

Expand Down

0 comments on commit 0260b6c

Please sign in to comment.