index.php 5.3 KB

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