1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-13 16:45:14 +01:00

run jekyll with bundle exec

This commit is contained in:
Matthias Kretschmann 2015-08-29 22:12:18 +02:00
parent 01c4214221
commit f0915b875d

View File

@ -109,9 +109,7 @@ gulp.task('clean', function(cb) {
//
gulp.task('jekyll', function(cb) {
var spawn = require('child_process').spawn;
var jekyll = spawn('jekyll', ['build', '--drafts', '--future'], {
stdio: 'inherit'
});
var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--drafts', '--future'], { stdio: 'inherit' });
jekyll.on('exit', function(code) {
cb(code === 0 ? null : 'ERROR: Jekyll process exited with code: ' + code);
@ -120,9 +118,7 @@ gulp.task('jekyll', function(cb) {
gulp.task('jekyll:production', function(cb) {
var spawn = require('child_process').spawn;
var jekyll = spawn('jekyll', ['build', '--lsi'], {
stdio: 'inherit'
});
var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--lsi'], { stdio: 'inherit' });
jekyll.on('exit', function(code) {
cb(code === 0 ? null : 'ERROR: Jekyll process exited with code: ' + code);