Skip to content

Commit

Permalink
Fix for annoying difference in option to specify a port in sftp
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonsim committed Jan 15, 2018
1 parent 7c4d16f commit f84e593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildspec-4-sftpdeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ phases:
- chmod 600 ~/.ssh/*

# Upload Files
- scp -o "StrictHostKeyChecking=no" -v -p ${SFTP_PORT} -r build/ ${SSH_USERNAME}@${SSH_SERVER}:/public_html
- scp -o "StrictHostKeyChecking=no" -v -P ${SFTP_PORT} -r build/ ${SSH_USERNAME}@${SSH_SERVER}:/public_html

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

0 comments on commit f84e593

Please sign in to comment.