diff --git a/app/templates/Gruntfile.js b/app/templates/Gruntfile.js index 3c26e0e81..695112e0b 100644 --- a/app/templates/Gruntfile.js +++ b/app/templates/Gruntfile.js @@ -1,6 +1,12 @@ 'use strict'; module.exports = function (grunt) { + var localConfig; + try { + localConfig = require('./server/config/local.env'); + } catch(e) { + localConfig = {}; + } // Load grunt tasks automatically, when needed require('jit-grunt')(grunt, { @@ -471,7 +477,7 @@ module.exports = function (grunt) { prod: { NODE_ENV: 'production' }, - all: require('./server/config/local.env') + all: localConfig },<% if(filters.jade) { %> // Compiles Jade to html