laravel.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # https://laravel.com/docs/10.x/deployment
  2. - name: clone source code
  3. ansible.builtin.git:
  4. repo: "https://github.com/iapt-platform/mint.git"
  5. dest: "{{ app_deploy_root }}/htdocs"
  6. version: "laravel"
  7. - name: install nodejs packages for v1
  8. ansible.builtin.shell:
  9. cmd: yarnpkg install
  10. chdir: "{{ app_deploy_root }}/htdocs/public"
  11. - name: install nodejs packages for v2
  12. ansible.builtin.shell:
  13. cmd: yarnpkg install
  14. chdir: "{{ app_deploy_root }}/htdocs"
  15. - name: autoloader Optimization
  16. ansible.builtin.shell:
  17. cmd: composer install --optimize-autoloader --no-dev
  18. chdir: "{{ app_deploy_root }}/htdocs"
  19. - name: caching configuration
  20. ansible.builtin.shell:
  21. cmd: php artisan config:cache
  22. chdir: "{{ app_deploy_root }}/htdocs"
  23. - name: caching events
  24. ansible.builtin.shell:
  25. cmd: php artisan event:cache
  26. chdir: "{{ app_deploy_root }}/htdocs"
  27. - name: caching routes
  28. ansible.builtin.shell:
  29. cmd: php artisan route:cache
  30. chdir: "{{ app_deploy_root }}/htdocs"
  31. - name: caching views
  32. ansible.builtin.shell:
  33. cmd: php artisan view:cache
  34. chdir: "{{ app_deploy_root }}/htdocs"