Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Snippets for setting up hugo
To Action From
-- ------ ----
Nginx Full ALLOW Anywhere
22/tcp ALLOW Anywhere
22 ALLOW Anywhere
Nginx Full (v6) ALLOW Anywhere (v6)
22/tcp (v6) ALLOW Anywhere (v6)
22 (v6) ALLOW Anywhere (v6)
#!/bin/bash
WORKING_DIRECTORY=/root/blog
GIT_DIR=/root/blog/.git
PUBLIC_WWW=/var/www/html/blog
cd $WORKING_DIRECTORY
git fetch --all
git reset --hard origin/master
/usr/bin/hugo -s $WORKING_DIRECTORY -d $PUBLIC_WWW
trap - EXIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.