Skip to content

Commit

Permalink
Tweak sftp buildspec
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonsim committed Jan 15, 2018
1 parent ed54d32 commit a336ac4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildspec-4-sftpdeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ phases:
- chmod 700 ~/.ssh
- chmod 400 ~/.ssh/id_rsa

# Ensure the known_hosts file knows about the ssh server
- ssh-keyscan -H -t rsa ${SSH_SERVER >> ~/.ssh/known_hosts

#Upload Files
- scp -p ${SFTP_PORT} -r build/ ${SSH_USERNAME}@${SSH_SERVER}:/public_html

Expand Down

0 comments on commit a336ac4

Please sign in to comment.