set JEKYLL_ENV during production build

This commit is contained in:
Matthias Kretschmann 2015-12-21 15:53:54 +01:00
parent efe35671d9
commit cce5504393
1 changed files with 1 additions and 0 deletions

View File

@ -105,6 +105,7 @@ gulp.task('jekyll', function(cb) {
var spawn = require('child_process').spawn;
if (isProduction) {
process.env.JEKYLL_ENV = 'production';
var jekyll = spawn('bundle', ['exec', 'jekyll', 'build'], { stdio: 'inherit' });
} else {
var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--incremental', '--drafts', '--future'], { stdio: 'inherit' });