1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-09-24 01:58:50 +02: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 // Jekyll
// //
gulp.task('jekyll', function(cb) { gulp.task('jekyll', function(cb) {
browser.notify('Compiling Jekyll');
var spawn = require('child_process').spawn; var spawn = require('child_process').spawn;
if (isProduction) { 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 { } else {
var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--config', '_config.yml,_config.dev.yml', '--drafts', '--future', '--incremental'], { stdio: 'inherit' }); var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--config', '_config.yml,_config.dev.yml', '--drafts', '--future', '--incremental'], { stdio: 'inherit' });
} }