We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9558453 commit c33364eCopy full SHA for c33364e
scripts/deploy.sh
@@ -14,7 +14,7 @@ if [ "${TRAVIS_BRANCH}" == 'master' ]; then
14
ssh-add ~/deploy-key
15
16
# SSH, pull, reinstall deps, and restart pm2 process
17
- ssh -t -o StrictHostKeyChecking=no $SERVER_USER@$SERVER_IP "bash --login -c 'cd /var/www/spacexdata.com/SpaceX-API && git checkout master && git pull --force && npm install --production && pm2 reload spacex-api'"
+ ssh -t -o StrictHostKeyChecking=no $SERVER_USER@$SERVER_IP "bash --login -c 'cd /var/www/spacexdata.com/SpaceX-API && git checkout master --force && git pull --force && npm install --production && pm2 reload spacex-api'"
18
else
19
echo "Not publishing, since this branch isn't master."
20
fi
0 commit comments