This commit is contained in:
Chris Wanstrath 2025-09-22 15:06:11 -07:00
parent b47655f21e
commit 73a41d458b

View File

@ -21,19 +21,13 @@ rsync -az --delete \
--exclude '.git/' \
../app/ "$HOST:$DEST/app/"
# additive sync for /bin and /www
# additive sync for root, /bin, /www
rsync -az \
-e "ssh -o ControlPath=$SOCK" \
--exclude 'node_modules/' \
--exclude '.git/' \
../bin/ "$HOST:$DEST/bin/"
rsync -az \
-e "ssh -o ControlPath=$SOCK" \
--exclude 'node_modules/' \
--exclude '.git/' \
../www/ "$HOST:$DEST/www/"
--exclude 'app/' \
../ "$HOST:$DEST/"
# 3) remote deploy (reuses the connection)
ssh -o ControlPath="$SOCK" "$HOST" "cd $DEST && bun install --frozen-lockfile && sudo systemctl restart nose-pluto.service"