diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-12-07 18:58:05 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-12-07 18:58:05 -0500 |
commit | ed5ac0e61f660dca6881fea5074d8478975a44c4 (patch) | |
tree | e255d7978e7c1fe144ca308263996247d2d741d4 /.local/bin/upsite | |
parent | 7c6065774adcc5adee9fd3220314ed149e4c1668 (diff) |
Final commit before leaving work cpu
Diffstat (limited to '.local/bin/upsite')
-rwxr-xr-x | .local/bin/upsite | 6 |
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" |