diff --git a/Envoy.blade.php b/Envoy.blade.php new file mode 100644 index 0000000..a0d38c8 --- /dev/null +++ b/Envoy.blade.php @@ -0,0 +1,31 @@ +@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