Skip to content

Instantly share code, notes, and snippets.

@vesh95
Created December 27, 2019 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vesh95/0c466c93a05e204704a8ab37078874c8 to your computer and use it in GitHub Desktop.
Save vesh95/0c466c93a05e204704a8ab37078874c8 to your computer and use it in GitHub Desktop.
#! /bin/sh
PROJECT_BASE=/var/www/[project_name]
GIT_REPO=$PROJECT_BASE/shared/[project_name].git
TMP_GIT_CLONE=$PROJECT_BASE/shared/build
GEMFILE=$TMP_GIT_CLONE/Gemfile
PUBLIC_WWW=$PROJECT_BASE/current
mkdir -p $TMP_GIT_CLONE
git clone $GIT_REPO $TMP_GIT_CLONE
BUNDLE_GEMFILE=$GEMFILE bundle install --path vendor/bundle
BUNDLE_GEMFILE=$GEMFILE bundle exec jekyll build --baseurl '' -s $TMP_GIT_CLONE -d $PUBLIC_WWW
# jekyll build -s $TMP_GIT_CLONE -d $PUBLIC_WWW
rm -Rf $TMP_GIT_CLONE
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment