We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0581ed0 commit 422d6bcCopy full SHA for 422d6bc
app/templates/Gruntfile.js
@@ -1,6 +1,12 @@
1
'use strict';
2
3
module.exports = function (grunt) {
4
+ var localConfig;
5
+ try {
6
+ localConfig = require('./server/config/local.env');
7
+ } catch(e) {
8
+ localConfig = {};
9
+ }
10
11
// Load grunt tasks automatically, when needed
12
require('jit-grunt')(grunt, {
@@ -471,7 +477,7 @@ module.exports = function (grunt) {
471
477
prod: {
472
478
NODE_ENV: 'production'
473
479
},
474
- all: require('./server/config/local.env')
480
+ all: localConfig
475
481
},<% if(filters.jade) { %>
476
482
483
// Compiles Jade to html
0 commit comments