Skip to content

Commit 422d6bc

Browse files
committed
fix(gruntfile): grunt tasks should run if no local config exists
1 parent 0581ed0 commit 422d6bc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: app/templates/Gruntfile.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
'use strict';
22

33
module.exports = function (grunt) {
4+
var localConfig;
5+
try {
6+
localConfig = require('./server/config/local.env');
7+
} catch(e) {
8+
localConfig = {};
9+
}
410

511
// Load grunt tasks automatically, when needed
612
require('jit-grunt')(grunt, {
@@ -471,7 +477,7 @@ module.exports = function (grunt) {
471477
prod: {
472478
NODE_ENV: 'production'
473479
},
474-
all: require('./server/config/local.env')
480+
all: localConfig
475481
},<% if(filters.jade) { %>
476482

477483
// Compiles Jade to html

0 commit comments

Comments
 (0)