|
|
|
@ -57,8 +57,8 @@ SERVER_TARGET="/usr/share/nginx/html/$RELATIVE_PATH"
|
|
|
|
|
|
|
|
|
|
# launches rsync in archive, verbose and compression mode
|
|
|
|
|
# creates target directory ($SERVER_TARGET) on server
|
|
|
|
|
# then sends generated files int the server directory
|
|
|
|
|
rsync -avz \
|
|
|
|
|
# then sends generated files into the server directory
|
|
|
|
|
rsync -avz -I \
|
|
|
|
|
--rsync-path="mkdir -p \"$SERVER_TARGET\" && rsync" \
|
|
|
|
|
-e "ssh -o StrictHostKeyChecking=no" \
|
|
|
|
|
--delete "$GEN_PATH" root@nginx:"$SERVER_TARGET"
|
|
|
|
|