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.

30 lines
770 B

5 years ago
5 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_api
  10. git pull origin dev
  11. @if($composer == true)
  12. composer update --lock
  13. @endif
  14. composer dump-autoload -o
  15. php bin/hyperf.php
  16. /www/server/panel/pyenv/bin/supervisorctl restart lanzu_api
  17. @endtask
  18. @task('git_prod')
  19. cd /www/wwwroot/lianjie_api
  20. git pull origin master
  21. @if($composer == true)
  22. composer update --no-dev --lock
  23. @endif
  24. composer dump-autoload -o
  25. php bin/hyperf.php
  26. /www/server/panel/pyenv/bin/supervisorctl restart lanzu_api
  27. @endtask