链街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.
 
 
 
 

31 lines
741 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 /data_ssd/lanzu_mp_cat
git pull origin develop
@if($composer == true)
composer update --lock
@endif
chmod -R 755 bootstrap/cache
chmod -R 755 storage
chown -R www:www /data_ssd/lanzu_mp_cat
@endtask
@task('git_prod')
cd /data_ssd/lanzu_mp_cat
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 /data_ssd/lanzu_mp_cat
@endtask