Commits (2)
echo -e "\033[0;32mDeploying updates to GitLab and Dokku...\033[0m"
# Commit changes.
msg="rebuilding site `date`"
if [ $# -eq 1 ]
then msg="$1"
git add .
git commit -m "pre $msg"
# Build the project.
rm -rf public/*
hugo # if using a theme, replace with `hugo -t <YOURTHEME>`
# Go To Public folder
cd public
# Add changes to git.
git add .
git commit -m "$msg"
# Push source and build repos.
git push origin public
git push dokku public:master
# Come Back up to the Project Root
cd ..
git add .
git commit -m "post $msg"
git push
Subproject commit 59dba0b48e019a96b358db3aee2dada08f764ae2
Subproject commit deb671503e9704282f3589f920c721c6a888d2f2