链街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
784 B

  1. @servers(['lanzu_dev' => 'root@120.24.33.109','lanzu_prod' => 'root@123.57.93.158'])
  2. @story('deploy_dev',['on' => 'lanzu_dev'])
  3. git_dev
  4. @endstory
  5. @story('deploy_prod',['on' => 'lanzu_prod'])
  6. git_prod
  7. @endstory
  8. @task('git_dev')
  9. cd /data_ssd/lanzu_mp_cat
  10. git pull origin develop
  11. @if($composer == true)
  12. composer update --lock
  13. @endif
  14. chmod -R 755 bootstrap/cache
  15. chmod -R 755 storage
  16. chown -R www:www /data_ssd/lanzu_mp_cat
  17. supervisorctl restart laravel-worker:*
  18. @endtask
  19. @task('git_prod')
  20. cd /data_ssd/lanzu_mp_cat
  21. git pull origin master
  22. @if($composer == true)
  23. composer update --no-dev --lock
  24. @endif
  25. chmod -R 755 bootstrap/cache
  26. chmod -R 755 storage
  27. chown -R www:www /data_ssd/lanzu_mp_cat
  28. @endtask