index.php 1.9 KB

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