From 2cb5375519506736c6d8b21303b98edc9e205ba2 Mon Sep 17 00:00:00 2001 From: ashmaroli Date: Mon, 15 Jan 2018 03:08:17 +0530 Subject: [PATCH] Update deploy-script in documentation (#6666) Merge pull request 6666 --- docs/_docs/deployment-methods.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/_docs/deployment-methods.md b/docs/_docs/deployment-methods.md index 972db336..5bc255b4 100644 --- a/docs/_docs/deployment-methods.md +++ b/docs/_docs/deployment-methods.md @@ -66,13 +66,15 @@ server$ mkdir /var/www/myrepo Next, add the following lines to hooks/post-receive and be sure Jekyll is installed on the server: -```sh +```bash GIT_REPO=$HOME/myrepo.git TMP_GIT_CLONE=$HOME/tmp/myrepo +GEMFILE=$TMP_GIT_CLONE/Gemfile PUBLIC_WWW=/var/www/myrepo git clone $GIT_REPO $TMP_GIT_CLONE -bundle exec jekyll build -s $TMP_GIT_CLONE -d $PUBLIC_WWW +BUNDLE_GEMFILE=$GEMFILE bundle install +BUNDLE_GEMFILE=$GEMFILE bundle exec jekyll build -s $TMP_GIT_CLONE -d $PUBLIC_WWW rm -Rf $TMP_GIT_CLONE exit ```