index.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. 'appadmin/runtime',
  36. 'appadmin/web/assets',
  37. 'appbdmin/runtime',
  38. 'appbdmin/web/assets',
  39. 'appapi/runtime',
  40. 'appapi/web/assets',
  41. 'appfront/runtime',
  42. 'appfront/web/assets',
  43. 'appfront/web/cn/assets',
  44. 'appfront/web/fr/assets',
  45. 'appfront/web/sitemap.xml',
  46. 'appfront/web/sitemap_es.xml',
  47. 'appfront/web/fr/sitemap.xml',
  48. 'appfront/web/cn/sitemap.xml',
  49. 'apphtml5/runtime',
  50. 'apphtml5/web/assets',
  51. 'apphtml5/web/sitemap.xml',
  52. 'apphtml5/web/sitemap_es.xml',
  53. 'apphtml5/web/fr/sitemap.xml',
  54. 'apphtml5/web/cn/sitemap.xml',
  55. 'appserver/runtime',
  56. 'appserver/web/assets',
  57. 'appimage/common/media/catalog/product',
  58. 'appimage/common/media/catalog/category',
  59. 'appimage/common/addons',
  60. //'appimage/common/appfront/media',
  61. //'appimage/common/apphtml5/media',
  62. //'appimage/common/appadmin/media',
  63. //'appimage/common/media',
  64. 'addons',
  65. // 设置可写,再界面安装完成后,会被重新设置成644
  66. 'common/config/main-local.php'
  67. //'appapi/merge_config.php',
  68. //'appfront/merge_config.php',
  69. //'apphtml5/merge_config.php',
  70. //'appserver/merge_config.php',
  71. ],
  72. 'setExecutable' => [
  73. 'yii',
  74. 'tests/codeception/bin/yii',
  75. //'appimage/common/media/catalog/product',
  76. //'appimage/common/appfront/media',
  77. //'appimage/common/apphtml5/media',
  78. // 'appimage/common/appadmin/media',
  79. //'appimage/common/media',
  80. //'addons',
  81. ],
  82. 'setCookieValidationKey' => [
  83. 'appadmin/config/main-local.php',
  84. 'appbdmin/config/main-local.php',
  85. 'appapi/config/main-local.php',
  86. 'appfront/config/main-local.php',
  87. 'apphtml5/config/main-local.php',
  88. 'appserver/config/main-local.php',
  89. ],
  90. ],
  91. 'Production' => [
  92. 'path' => 'prod',
  93. 'setWritable' => [
  94. 'appadmin/runtime',
  95. 'appadmin/web/assets',
  96. 'appbdmin/runtime',
  97. 'appbdmin/web/assets',
  98. 'appapi/runtime',
  99. 'appapi/web/assets',
  100. 'appfront/runtime',
  101. 'appfront/web/assets',
  102. 'appfront/web/cn/assets',
  103. 'appfront/web/fr/assets',
  104. 'appfront/web/sitemap.xml',
  105. 'appfront/web/sitemap_es.xml',
  106. 'appfront/web/fr/sitemap.xml',
  107. 'appfront/web/cn/sitemap.xml',
  108. 'apphtml5/runtime',
  109. 'apphtml5/web/assets',
  110. 'apphtml5/web/cn/assets',
  111. 'apphtml5/web/fr/assets',
  112. 'apphtml5/web/sitemap.xml',
  113. 'apphtml5/web/sitemap_es.xml',
  114. 'apphtml5/web/fr/sitemap.xml',
  115. 'apphtml5/web/cn/sitemap.xml',
  116. 'appserver/runtime',
  117. 'appserver/web/assets',
  118. 'appimage/common/media/catalog/product',
  119. 'appimage/common/media/catalog/category',
  120. 'appimage/common/addons',
  121. //'appimage/common/appfront/media',
  122. //'appimage/common/apphtml5/media',
  123. //'appimage/common/appadmin/media',
  124. //'appimage/common/media',
  125. 'addons',
  126. // 设置可写,再界面安装完成后,会被重新设置成644
  127. 'common/config/main-local.php'
  128. //'appapi/merge_config.php',
  129. //'appfront/merge_config.php',
  130. //'apphtml5/merge_config.php',
  131. //'appserver/merge_config.php',
  132. ],
  133. 'setExecutable' => [
  134. 'yii',
  135. // 'appimage/common/media/catalog/product',
  136. // 'appimage/common/appfront/media',
  137. // 'appimage/common/apphtml5/media',
  138. // 'appimage/common/appadmin/media',
  139. // 'appimage/common/media',
  140. // 'addons',
  141. ],
  142. 'setCookieValidationKey' => [
  143. 'appadmin/config/main-local.php',
  144. 'appbdmin/config/main-local.php',
  145. 'appapi/config/main-local.php',
  146. 'appfront/config/main-local.php',
  147. 'apphtml5/config/main-local.php',
  148. 'appserver/config/main-local.php',
  149. ],
  150. ],
  151. ];