index.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. 'common/config',
  36. 'backend/runtime',
  37. 'frontend/runtime',
  38. 'html5/runtime',
  39. 'api/runtime',
  40. 'oauth2/runtime',
  41. 'merchant/runtime',
  42. '/web/assets',
  43. '/web/backend/assets',
  44. '/web/html5/assets',
  45. '/web/api/assets',
  46. '/web/oauth2/assets',
  47. '/web/merchant/assets',
  48. 'web/attachment',
  49. 'addons',
  50. ],
  51. 'setExecutable' => [
  52. 'yii',
  53. 'yii_test',
  54. ],
  55. 'setCookieValidationKey' => [
  56. 'backend/config/main-local.php',
  57. 'frontend/config/main-local.php',
  58. 'html5/config/main-local.php',
  59. 'api/config/main-local.php',
  60. 'oauth2/config/main-local.php',
  61. 'merchant/config/main-local.php',
  62. ],
  63. ],
  64. 'Production' => [
  65. 'path' => 'prod',
  66. 'setWritable' => [
  67. 'common/config',
  68. 'backend/runtime',
  69. 'frontend/runtime',
  70. 'html5/runtime',
  71. 'api/runtime',
  72. 'oauth2/runtime',
  73. 'merchant/runtime',
  74. '/web/assets',
  75. '/web/backend/assets',
  76. '/web/html5/assets',
  77. '/web/api/assets',
  78. '/web/oauth2/assets',
  79. '/web/merchant/assets',
  80. 'web/attachment',
  81. 'addons',
  82. ],
  83. 'setExecutable' => [
  84. 'yii',
  85. ],
  86. 'setCookieValidationKey' => [
  87. 'backend/config/main-local.php',
  88. 'frontend/config/main-local.php',
  89. 'html5/config/main-local.php',
  90. 'api/config/main-local.php',
  91. 'oauth2/config/main-local.php',
  92. 'merchant/config/main-local.php',
  93. ],
  94. ],
  95. ];
粤ICP备19079148号