Skip to content

Commit

Permalink
Only deploy master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonsim committed Jan 15, 2018
1 parent 875f8c6 commit 86f18eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildspec-4-sftpdeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ phases:
fi
# Install SSH client so we can deploy
apt-get install -y openssh-client
apt-get install -y openssh-client rsync
# Setup the SSH key
mkdir ~/.ssh
Expand All @@ -100,7 +100,7 @@ phases:
chmod 600 ~/.ssh/*
# Upload Files
scp -o "StrictHostKeyChecking=no" -P ${SFTP_PORT} -r . ${SSH_USERNAME}@${SSH_SERVER}:~/public_html/
rsync -arvce "ssh 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'
Expand Down

0 comments on commit 86f18eb

Please sign in to comment.