modify user output in deploy script
This commit is contained in:
parent
d2930babaa
commit
4fd0436b4a
|
@ -30,7 +30,7 @@ then
|
|||
|
||||
# via scp - this will not delete old files
|
||||
echo "scp -r -P ${PORT} -o User=${USER} $DIR/* ${HOST}:${REMOTE_DIR}"
|
||||
scp -r -P ${PORT} -o User=${USER} -o HostKeyAlgorithms=+ssh-rsa $DIR/* ${HOST}:${REMOTE_DIR} && git restore --staged . && git add public && git commit -m "deployed changes to server" && echo "Changes deployed to $HOST" || echo "No changes deployed to $HOST"
|
||||
scp -r -P ${PORT} -o User=${USER} -o HostKeyAlgorithms=+ssh-rsa $DIR/* ${HOST}:${REMOTE_DIR} && echo "Deployment Successful" && git restore --staged . && git add public && git commit -m "deployed changes to $HOST" && echo "Deployed changes added to git" || echo "No changes made to the git repository"
|
||||
|
||||
# via rsync - this command will delete everything on the server that's not in the local build folder
|
||||
# rsync -avz --delete "$DIR"/ ${USER}@${HOST}:~/${REMOTE_DIR} && git restore --staged . && git add public && git commit -m "deployed changes to server" && echo "Changes deployed to $HOST" || echo "No changes deployed to $HOST"
|
||||
|
|
Loading…
Reference in New Issue