Skip to content

Commit

Permalink
permissions for codebuild-deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonsim committed Jan 15, 2018
1 parent abdd201 commit b7aaaac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codebuild-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ echo $SSH_KEY | base64 -d > ~/.ssh/id_rsa
chmod 600 ~/.ssh/*

# Upload Files
rsync -arvce --delete-after "ssh -o StrictHostKeyChecking=no -p ${SFTP_PORT}" . ${SSH_USERNAME}@${SSH_SERVER}:~/public_html/
rsync --delete-after -arvce "ssh -o StrictHostKeyChecking=no -p ${SFTP_PORT}" . ${SSH_USERNAME}@${SSH_SERVER}:~/public_html/

# Run any necessary remote commands
ssh -o "StrictHostKeyChecking=no" ${SSH_USERNAME}@${SSH_SERVER} -p ${SSH_PORT} 'cd public_html ; composer install --optimize-autoloader; php artisan migrate'

0 comments on commit b7aaaac

Please sign in to comment.