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

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. @servers(['lanzu_dev' => 'root@106.14.172.58','lanzu_prod' => 'root@106.14.172.58'])
  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 /www/wwwroot/lianjie_admin
  10. git pull origin dev
  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 /www/wwwroot/lianjie_admin
  17. supervisorctl restart laravel-worker:*
  18. @endtask
  19. @task('git_prod')
  20. cd /www/wwwroot/lianjie_admin
  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 /www/wwwroot/lianjie_admin
  28. @endtask