summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/upsite6
1 files changed, 4 insertions, 2 deletions
diff --git a/.local/bin/upsite b/.local/bin/upsite
index aad82be..c6ef404 100755
--- a/.local/bin/upsite
+++ b/.local/bin/upsite
@@ -2,8 +2,10 @@
sitename="chausse.xyz"
-cd "$HOME/Workspace/$sitename"
+branch="construction"
+
+cd "$HOME/Workspace/$sitename$construction" && git pull origin $branch && git checkout $branch
hugo --gc=true --minify
-rsync -auvz "$HOME/Workspace/$sitename/public/" "master@$sitename:/var/www/dev"
+rsync -auvz "$HOME/Workspace/$sitename$construction/public/" "master@$sitename:/var/www/chausse"