You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
631 B

@servers(['lanzu_dev' => 'root@120.24.33.109','lanzu_prod' => 'root@123.57.93.158'])
@story('deploy_dev',['on' => 'lanzu_dev'])
git_dev
@endstory
@story('deploy_prod',['on' => 'lanzu_prod'])
git_prod
@endstory
@task('git_dev')
cd /lanzu_api
git pull origin develop
@if($composer == true)
composer update --lock
@endif
php bin/hyperf.php
supervisorctl restart lanzu_api
@endtask
@task('git_prod')
cd /lanzu_api
git pull origin master
@if($composer == true)
composer update --no-dev --lock
@endif
php bin/hyperf.php
supervisorctl restart lanzu_api
@endtask