index.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * The manifest of files that are local to specific environment.
  4. * This file returns a list of environments that the application
  5. * may be installed under. The returned data must be in the following
  6. * format:
  7. *
  8. * ```php
  9. * return [
  10. * 'environment name' => [
  11. * 'path' => 'directory storing the local files',
  12. * 'skipFiles' => [
  13. * // list of files that should only copied once and skipped if they already exist
  14. * ],
  15. * 'setWritable' => [
  16. * // list of directories that should be set writable
  17. * ],
  18. * 'setExecutable' => [
  19. * // list of files that should be set executable
  20. * ],
  21. * 'setCookieValidationKey' => [
  22. * // list of config files that need to be inserted with automatically generated cookie validation keys
  23. * ],
  24. * 'createSymlink' => [
  25. * // list of symlinks to be created. Keys are symlinks, and values are the targets.
  26. * ],
  27. * ],
  28. * ];
  29. * ```
  30. */
  31. return [
  32. 'Development' => [
  33. 'path' => 'dev',
  34. 'setWritable' => [
  35. 'backend/runtime',
  36. 'backend/web/assets',
  37. 'backend/web/uploads',
  38. 'frontend/runtime',
  39. 'frontend/web/assets',
  40. 'frontend/web/uploads',
  41. 'frontend/web/admin/assets',
  42. 'frontend/web/admin/uploads',
  43. 'frontend/web/api/assets',
  44. 'api/runtime',
  45. 'api/web/assets',
  46. ],
  47. 'setExecutable' => [
  48. 'yii',
  49. 'yii_test',
  50. ],
  51. 'setCookieValidationKey' => [
  52. 'backend/config/main-local.php',
  53. 'frontend/config/main-local.php',
  54. ],
  55. ],
  56. 'Production' => [
  57. 'path' => 'prod',
  58. 'setWritable' => [
  59. 'backend/runtime',
  60. 'backend/web/assets',
  61. 'backend/web/uploads',
  62. 'frontend/runtime',
  63. 'frontend/web/assets',
  64. 'frontend/web/uploads',
  65. 'frontend/web/admin/assets',
  66. 'frontend/web/admin/uploads',
  67. 'frontend/web/api/assets',
  68. 'api/runtime',
  69. 'api/web/assets',
  70. ],
  71. 'setExecutable' => [
  72. 'yii',
  73. ],
  74. 'setCookieValidationKey' => [
  75. 'backend/config/main-local.php',
  76. 'frontend/config/main-local.php',
  77. ],
  78. ],
  79. ];