File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ phases:
7979 # Deployment to the SFTP server
8080 - |
8181 set -e
82+ cat /codebuild/output/tmp/script.sh
8283
8384 # Determine what git branch we're on, we only want to deploy master
8485 export CODEBUILD_GIT_BRANCH=`git symbolic-ref HEAD --short 2>/dev/null`
@@ -103,7 +104,7 @@ phases:
103104 chmod 600 ~/.ssh/*
104105
105106 # Upload Files
106- rsync -arvce "ssh -o StrictHostKeyChecking=no -p ${SFTP_PORT}" . ${SSH_USERNAME}@${SSH_SERVER}:~/public_html/
107+ rsync -arvce --delete-after "ssh -o StrictHostKeyChecking=no -p ${SFTP_PORT}" . ${SSH_USERNAME}@${SSH_SERVER}:~/public_html/
107108
108109 # Run any necessary remote commands
109110 ssh -o "StrictHostKeyChecking=no" ${SSH_USERNAME}@${SSH_SERVER} -p ${SSH_PORT} 'cd public_html ; composer install --optimize-autoloader; php artisan migrate'
You can’t perform that action at this time.
0 commit comments