mirror of
https://github.com/kremalicious/blog.git
synced 2024-09-24 01:58:50 +02:00
run jekyll with bundle exec
This commit is contained in:
parent
01c4214221
commit
f0915b875d
@ -109,9 +109,7 @@ gulp.task('clean', function(cb) {
|
|||||||
//
|
//
|
||||||
gulp.task('jekyll', function(cb) {
|
gulp.task('jekyll', function(cb) {
|
||||||
var spawn = require('child_process').spawn;
|
var spawn = require('child_process').spawn;
|
||||||
var jekyll = spawn('jekyll', ['build', '--drafts', '--future'], {
|
var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--drafts', '--future'], { stdio: 'inherit' });
|
||||||
stdio: 'inherit'
|
|
||||||
});
|
|
||||||
|
|
||||||
jekyll.on('exit', function(code) {
|
jekyll.on('exit', function(code) {
|
||||||
cb(code === 0 ? null : 'ERROR: Jekyll process exited with code: ' + 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) {
|
gulp.task('jekyll:production', function(cb) {
|
||||||
var spawn = require('child_process').spawn;
|
var spawn = require('child_process').spawn;
|
||||||
var jekyll = spawn('jekyll', ['build', '--lsi'], {
|
var jekyll = spawn('bundle', ['exec', 'jekyll', 'build', '--lsi'], { stdio: 'inherit' });
|
||||||
stdio: 'inherit'
|
|
||||||
});
|
|
||||||
|
|
||||||
jekyll.on('exit', function(code) {
|
jekyll.on('exit', function(code) {
|
||||||
cb(code === 0 ? null : 'ERROR: Jekyll process exited with code: ' + code);
|
cb(code === 0 ? null : 'ERROR: Jekyll process exited with code: ' + code);
|
||||||
|
Loading…
Reference in New Issue
Block a user