Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (15 sloc) 476 Bytes
#!/bin/bash -l
# Install Ruby Gems to ~/gems
export GEM_HOME=$HOME/gems
export PATH=$GEM_HOME/bin:$PATH
# Vars
GIT_REPO=$HOME/{REPO NAME}.git
TMP_GIT_CLONE=$HOME/tmp/{REPO NAME}
GEMFILE=$TMP_GIT_CLONE/Gemfile
PUBLIC_WWW=/var/www/{SITE NAME}/html/
# Build and publish
git clone $GIT_REPO $TMP_GIT_CLONE
BUNDLE_GEMFILE=$GEMFILE bundle install
BUNDLE_GEMFILE=$GEMFILE JEKYLL_ENV=production bundle exec jekyll build -s $TMP_GIT_CLONE -d $PUBLIC_WWW
rm -Rf $TMP_GIT_CLONE
exit
You can’t perform that action at this time.