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

  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. @endtask
  18. @task('git_prod')
  19. cd /data_ssd/lanzu_mp_cat
  20. git pull origin master
  21. @if($composer == true)
  22. composer update --no-dev --lock
  23. @endif
  24. chmod -R 755 bootstrap/cache
  25. chmod -R 755 storage
  26. chown -R www:www /data_ssd/lanzu_mp_cat
  27. @endtask