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
691 B

5 years ago
5 years ago
  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 /lanzu_api
  10. git pull origin develop
  11. @if($composer == true)
  12. composer update --lock
  13. @endif
  14. composer dump-autoload -o
  15. php bin/hyperf.php
  16. supervisorctl restart lanzu_api
  17. @endtask
  18. @task('git_prod')
  19. cd /lanzu_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. supervisorctl restart lanzu_api
  27. @endtask