fix sync
This commit is contained in:
parent
b47655f21e
commit
73a41d458b
|
|
@ -21,19 +21,13 @@ rsync -az --delete \
|
||||||
--exclude '.git/' \
|
--exclude '.git/' \
|
||||||
../app/ "$HOST:$DEST/app/"
|
../app/ "$HOST:$DEST/app/"
|
||||||
|
|
||||||
# additive sync for /bin and /www
|
# additive sync for root, /bin, /www
|
||||||
rsync -az \
|
rsync -az \
|
||||||
-e "ssh -o ControlPath=$SOCK" \
|
-e "ssh -o ControlPath=$SOCK" \
|
||||||
--exclude 'node_modules/' \
|
--exclude 'node_modules/' \
|
||||||
--exclude '.git/' \
|
--exclude '.git/' \
|
||||||
../bin/ "$HOST:$DEST/bin/"
|
--exclude 'app/' \
|
||||||
|
../ "$HOST:$DEST/"
|
||||||
rsync -az \
|
|
||||||
-e "ssh -o ControlPath=$SOCK" \
|
|
||||||
--exclude 'node_modules/' \
|
|
||||||
--exclude '.git/' \
|
|
||||||
../www/ "$HOST:$DEST/www/"
|
|
||||||
|
|
||||||
|
|
||||||
# 3) remote deploy (reuses the connection)
|
# 3) remote deploy (reuses the connection)
|
||||||
ssh -o ControlPath="$SOCK" "$HOST" "cd $DEST && bun install --frozen-lockfile && sudo systemctl restart nose-pluto.service"
|
ssh -o ControlPath="$SOCK" "$HOST" "cd $DEST && bun install --frozen-lockfile && sudo systemctl restart nose-pluto.service"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user