hooks.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 update',
  25. 'composer dumpautoload',
  26. 'php artisan route:clear',
  27. 'chmod -R 777 bootstrap',
  28. 'chmod -R 777 storage',
  29. 'chmod -R 777 public'
  30. ],
  31. 'cleanup' => [],
  32. ],
  33. // Custom Tasks to register with Rocketeer
  34. 'custom' => [],
  35. ];