Update deployment script

master
Marvin Johanning 2020-04-12 16:43:30 +02:00
parent c479d158a9
commit 47f51be0d2
1 changed files with 3 additions and 0 deletions

View File

@ -13,12 +13,15 @@ if [[ `git status -uno` == *"Your branch is up to date"* ]]; then
exit
else
printf "Branch is behind, deployment starting.\n"
sleep 2
printf "Pulling from remote origin ...\n"
git pull
printf "Building Jekyll site ...\n"
sleep 2
bundler exec jekyll build
printf "Moving _site directory to /var/www/ ...\n"
sleep 2
sudo cp -r _site/* /var/www/blog.marvinjohanning.de
fi