index.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. //'appapi/merge_config.php',
  57. //'appfront/merge_config.php',
  58. //'apphtml5/merge_config.php',
  59. //'appserver/merge_config.php',
  60. ],
  61. 'setExecutable' => [
  62. 'yii',
  63. 'tests/codeception/bin/yii',
  64. ],
  65. 'setCookieValidationKey' => [
  66. 'appadmin/config/main-local.php',
  67. 'appapi/config/main-local.php',
  68. 'appfront/config/main-local.php',
  69. 'apphtml5/config/main-local.php',
  70. 'appserver/config/main-local.php',
  71. ],
  72. ],
  73. 'Production' => [
  74. 'path' => 'prod',
  75. 'setWritable' => [
  76. 'appadmin/runtime',
  77. 'appadmin/web/assets',
  78. 'appapi/runtime',
  79. 'appapi/web/assets',
  80. 'appfront/runtime',
  81. 'appfront/web/assets',
  82. 'appfront/web/cn/assets',
  83. 'appfront/web/fr/assets',
  84. 'appfront/web/sitemap.xml',
  85. 'appfront/web/sitemap_es.xml',
  86. 'appfront/web/fr/sitemap.xml',
  87. 'appfront/web/cn/sitemap.xml',
  88. 'apphtml5/runtime',
  89. 'apphtml5/web/assets',
  90. 'apphtml5/web/cn/assets',
  91. 'apphtml5/web/fr/assets',
  92. 'apphtml5/web/sitemap.xml',
  93. 'apphtml5/web/sitemap_es.xml',
  94. 'apphtml5/web/fr/sitemap.xml',
  95. 'apphtml5/web/cn/sitemap.xml',
  96. 'appserver/runtime',
  97. 'appserver/web/assets',
  98. 'appimage/common/media/catalog/product',
  99. //'appapi/merge_config.php',
  100. //'appfront/merge_config.php',
  101. //'apphtml5/merge_config.php',
  102. //'appserver/merge_config.php',
  103. ],
  104. 'setExecutable' => [
  105. 'yii',
  106. ],
  107. 'setCookieValidationKey' => [
  108. 'appadmin/config/main-local.php',
  109. 'appapi/config/main-local.php',
  110. 'appfront/config/main-local.php',
  111. 'apphtml5/config/main-local.php',
  112. 'appserver/config/main-local.php',
  113. ],
  114. ],
  115. ];