Skip to content

Commit e8f932e

Browse files
committed
Fix build second iteration
1 parent 7f4d520 commit e8f932e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

bin/deploy-to-prod.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ $(phpenv version-name) = "7.1" ];
77
#scp package.tgz $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
88
#ssh $DEPLOY_USER@$DEPLOY_HOST $DEPLOY_PATH/deploy.sh
99
#ssh $DEPLOY_USER@$DEPLOY_HOST php\ ~/php.of.by/builds/current/bin/console\ doctrine:migrations:migrate\ --env=prod
10-
ssh $DEPLOY_USER@$DEPLOY_HOST rm\ -Rf\ ~/php.of.by/builds/current
11-
ssh $DEPLOY_USER@$DEPLOY_HOST mv\ ~/php.of.by/builds/current_old\ ~/php.of.by/builds/current
12-
#vendor/bin/dep deploy production
10+
ssh $DEPLOY_USER@$DEPLOY_HOST mv\ ~/php.of.by/builds/current\ ~/php.of.by/builds/current_old
11+
vendor/bin/dep deploy production
1312
fi

deploy.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
->identityFile('.travis/deploy.key')
2222
->set('deploy_path', getenv('DEPLOY_PATH'));
2323

24+
// User for setting proper permissions
25+
set('http_user', getenv('DEPLOY_USER'));
26+
set('http_group', getenv('DEPLOY_USER'));
27+
2428
task('deploy:package_upload', function(){
2529
// Upload code package to server
2630
upload('package.tgz', sprintf('%s/package.tgz', get('deploy_path')));

0 commit comments

Comments
 (0)