Merge pull request #5188 from jekyll/default-site-read-from-local

Merge pull request 5188
This commit is contained in:
jekyllbot 2016-08-02 16:13:06 -07:00 committed by GitHub
commit a7bc7ff9c7
1 changed files with 4 additions and 0 deletions

View File

@ -7,10 +7,14 @@ echo "$0: setting up tmp directory"
mkdir -p ./tmp
rm -Rf ./tmp/default-site
workdir=$(pwd)
echo "$0: creating new default site"
bundle exec exe/jekyll new tmp/default-site
pushd tmp/default-site
echo "$0: respecifying the jekyll install location"
ruby -e "contents = File.read('Gemfile'); File.write('Gemfile', contents.sub(/gem \"jekyll\".*\\n/, 'gem \"jekyll\", path: \"$workdir\"'))"
echo "$0: installing default site dependencies"
BUNDLE_GEMFILE=Gemfile bundle install
echo "$0: building the default site"