index.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. 'frontend/runtime',
  38. 'frontend/web/assets',
  39. 'api/runtime',
  40. 'api/web/assets',
  41. ],
  42. 'setExecutable' => [
  43. 'yii',
  44. 'yii_test',
  45. ],
  46. 'setCookieValidationKey' => [
  47. 'backend/config/main-local.php',
  48. 'frontend/config/main-local.php',
  49. 'api/config/main-local.php',
  50. ],
  51. ],
  52. 'Production' => [
  53. 'path' => 'prod',
  54. 'setWritable' => [
  55. 'backend/runtime',
  56. 'backend/web/assets',
  57. 'frontend/runtime',
  58. 'frontend/web/assets',
  59. 'api/runtime',
  60. 'api/web/assets',
  61. ],
  62. 'setExecutable' => [
  63. 'yii',
  64. ],
  65. 'setCookieValidationKey' => [
  66. 'backend/config/main-local.php',
  67. 'frontend/config/main-local.php',
  68. 'api/config/main-local.php',
  69. ],
  70. ],
  71. ];