Skip to content

Commit

Permalink
Fix to ssh deploy code
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonsim committed Jan 15, 2018
1 parent 53bc8f7 commit 7c4d16f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildspec-4-sftpdeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,19 @@ phases:
# - cat ~/.ssh/id_rsa

- chmod 600 ~/.ssh/*
# Run any necessary remote commands
- ssh -o "StrictHostKeyChecking=no" -v ${SSH_USERNAME}@${SSH_SERVER} -p ${SSH_PORT} composer install --optimize-autoloader

# Upload Files
- 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'




cache:
paths:
# Debian package caches, so we don't need to keep redownloading debian packages:
# Debian package caches, so we don't need to keep redownloading debian packages and lists:
- /var/cache/apt/**/*
- /var/lib/apt/lists/**/*

Expand Down

0 comments on commit 7c4d16f

Please sign in to comment.