summaryrefslogtreecommitdiffstats
path: root/git-post-receive
diff options
context:
space:
mode:
Diffstat (limited to 'git-post-receive')
-rw-r--r--git-post-receive8
1 files changed, 4 insertions, 4 deletions
diff --git a/git-post-receive b/git-post-receive
index c8062a1..b2c61be 100644
--- a/git-post-receive
+++ b/git-post-receive
@@ -3,7 +3,7 @@
# theme repository
THEME_REPO=$HOME/repositories/danix2-hugo-theme.git
# repository logical name
-REPO="danix.xyz"
+REPO="danix.xyz-2"
# Directory where to work on our site
TARGET_DIR=/tmp/danix.xyz-compile
GIT_DIR=$HOME/repositories/${REPO}.git
@@ -67,8 +67,8 @@ do
git --git-dir=$GIT_DIR --work-tree=. -C "$TARGET_DIR" checkout -f
log "Cloning theme from $THEME_REPO"
- git clone $THEME_REPO ${TARGET_DIR}/themes/dagreynix
- log "Theme cloned at commit: $(git -C ${TARGET_DIR}/themes/dagreynix rev-parse --short HEAD)"
+ git clone $THEME_REPO ${TARGET_DIR}/themes/danix-xyz-hacker
+ log "Theme cloned at commit: $(git -C ${TARGET_DIR}/themes/danix-xyz-hacker rev-parse --short HEAD)"
log "Clearing $PUBLIC_WWW"
rm -rf $PUBLIC_WWW/*
@@ -77,7 +77,7 @@ do
git tag release_$NOW $BRANCH
log "Running Hugo build..."
- /usr/local/bin/hugo -s $TARGET_DIR -d $PUBLIC_WWW -b "${SITE_DOMAIN}" -t "dagreynix" --noTimes --minify
+ /usr/local/bin/hugo -s $TARGET_DIR -d $PUBLIC_WWW -b "${SITE_DOMAIN}" -t "danix-xyz-hacker" --noTimes --minify
log "Hugo build complete."
log "========================================"