From 72a96484499fcc7cd702deae97c0614d75e4b158 Mon Sep 17 00:00:00 2001 From: Michal Wolny Date: Sun, 9 May 2021 18:16:06 +0200 Subject: enable stdio logging from jekyll build process - fix "Could not find gem" error during build --- gulpfile.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 34cc828b..60203d7e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -403,8 +403,12 @@ gulp.task('build-zip', function () { }); gulp.task('build-jekyll', function (cb) { - cp.exec('bundle exec jekyll build', function () { - cb(); + const jekyll = cp.spawn("bundle", ["exec", "jekyll", "build"], { stdio: 'inherit' }); + jekyll.on("close", function (code) { + console.log(`Jekyll build exited with code ${code}`); + if (!code) { + cb(); + } }); }); -- cgit v1.2.1