File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff 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
1312fi
Original file line number Diff line number Diff line change 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+
2428task ('deploy:package_upload ' , function (){
2529 // Upload code package to server
2630 upload ('package.tgz ' , sprintf ('%s/package.tgz ' , get ('deploy_path ' )));
You can’t perform that action at this time.
0 commit comments