Created
December 27, 2019 19:16
-
-
Save vesh95/0c466c93a05e204704a8ab37078874c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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