1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-23 01:30:01 +01:00

set JEKYLL_ENV correctly

This commit is contained in:
Matthias Kretschmann 2015-11-20 23:02:31 +01:00
parent 56fe5ac2e8
commit 6676810f7a

View File

@ -125,10 +125,13 @@ gulp.task('clean', function(done) {
// Jekyll
//
gulp.task('jekyll', function(cb) {
browser.notify('Compiling Jekyll');
var spawn = require('child_process').spawn;
if (isProduction) {
var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--lsi', 'JEKYLL_ENV=production'], { stdio: 'inherit' });
process.env.JEKYLL_ENV = 'production';
var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--lsi'], { stdio: 'inherit' });
} else {
var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--config', '_config.yml,_config.dev.yml', '--drafts', '--future', '--incremental'], { stdio: 'inherit' });
}