remote.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. return [
  3. // Remote server
  4. //////////////////////////////////////////////////////////////////////
  5. // Variables about the servers. Those can be guessed but in
  6. // case of problem it's best to input those manually
  7. 'variables' => [
  8. 'directory_separator' => '/',
  9. 'line_endings' => "\n",
  10. ],
  11. // The number of releases to keep at all times
  12. 'keep_releases' => 4,
  13. // Folders
  14. ////////////////////////////////////////////////////////////////////
  15. // The root directory where your applications will be deployed
  16. // This path *needs* to start at the root, ie. start with a /
  17. 'root_directory' => '/data/wwwroot/beta',
  18. // The folder the application will be cloned in
  19. // Leave empty to use `application_name` as your folder name
  20. 'app_directory' => '',
  21. // A list of folders/file to be shared between releases
  22. // Use this to list folders that need to keep their state, like
  23. // user uploaded data, file-based databases, etc.
  24. 'shared' => [
  25. 'storage',
  26. 'vendor',
  27. '.env',
  28. ],
  29. // Execution
  30. //////////////////////////////////////////////////////////////////////
  31. // If enabled will force a shell to be created
  32. // which is required for some tools like RVM or NVM
  33. 'shell' => false,
  34. // An array of commands to run under shell
  35. 'shelled' => ['which', 'ruby', 'npm', 'bower', 'bundle', 'grunt'],
  36. // Enable use of sudo for some commands
  37. // You can specify a sudo user by doing
  38. // 'sudo' => 'the_user'
  39. 'sudo' => false,
  40. // An array of commands to run under sudo
  41. 'sudoed' => [],
  42. // Permissions$
  43. ////////////////////////////////////////////////////////////////////
  44. 'permissions' => [
  45. // The folders and files to set as web writable
  46. 'files' => [
  47. 'bootstrap/cache',
  48. 'storage',
  49. ],
  50. // Here you can configure what actions will be executed to set
  51. // permissions on the folder above. The Closure can return
  52. // a single command as a string or an array of commands
  53. 'callback' => function ($task, $file) {
  54. return [
  55. sprintf('chmod -R 777 %s', $file),
  56. sprintf('chmod -R g+s %s', $file),
  57. sprintf('chown -R www:www %s', $file),
  58. ];
  59. },
  60. ],
  61. ];