hooks.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. return [
  3. // Tasks
  4. //
  5. // Here you can define in the `before` and `after` array, Tasks to execute
  6. // before or after the core Rocketeer Tasks. You can either put a simple command,
  7. // a closure which receives a $task object, or the name of a class extending
  8. // the Rocketeer\Abstracts\AbstractTask class
  9. //
  10. // In the `custom` array you can list custom Tasks classes to be added
  11. // to Rocketeer. Those will then be available in the command line
  12. // with all the other tasks
  13. //////////////////////////////////////////////////////////////////////
  14. // Tasks to execute before the core Rocketeer Tasks
  15. 'before' => [
  16. 'setup' => [],
  17. 'deploy' => [],
  18. 'cleanup' => [],
  19. ],
  20. // Tasks to execute after the core Rocketeer Tasks
  21. 'after' => [
  22. 'setup' => [],
  23. 'deploy' => [
  24. 'composer dumpautoload',
  25. 'php artisan route:clear',
  26. 'chmod -R 777 bootstrap',
  27. 'chmod -R 777 storage',
  28. 'chmod -R 777 public'
  29. ],
  30. 'cleanup' => [],
  31. ],
  32. // Custom Tasks to register with Rocketeer
  33. 'custom' => [],
  34. ];