链街Dcat后台
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.
 
 
 
 

32 lines
796 B

@servers(['lanzu_dev' => 'root@106.14.172.58','lanzu_prod' => 'root@106.14.172.58'])
@story('deploy_dev',['on' => 'lanzu_dev'])
git_dev
@endstory
@story('deploy_prod',['on' => 'lanzu_prod'])
git_prod
@endstory
@task('git_dev')
cd /www/wwwroot/lianjie_admin
git pull origin dev
@if($composer == true)
composer update --lock
@endif
chmod -R 755 bootstrap/cache
chmod -R 755 storage
chown -R www:www /www/wwwroot/lianjie_admin
supervisorctl restart laravel-worker:*
@endtask
@task('git_prod')
cd /www/wwwroot/lianjie_admin
git pull origin master
@if($composer == true)
composer update --no-dev --lock
@endif
chmod -R 755 bootstrap/cache
chmod -R 755 storage
chown -R www:www /www/wwwroot/lianjie_admin
@endtask