選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

62 行
1.7KB

  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. * 'setWritable' => [
  13. * // list of directories that should be set writable
  14. * ],
  15. * 'setExecutable' => [
  16. * // list of files that should be set executable
  17. * ],
  18. * 'setCookieValidationKey' => [
  19. * // list of config files that need to be inserted with automatically generated cookie validation keys
  20. * ],
  21. * 'createSymlink' => [
  22. * // list of symlinks to be created. Keys are symlinks, and values are the targets.
  23. * ],
  24. * ],
  25. * ];
  26. * ```
  27. */
  28. return [
  29. 'Development' => [
  30. 'path' => 'dev',
  31. 'setWritable' => [
  32. 'backend/runtime',
  33. 'backend/web/assets',
  34. 'frontend/runtime',
  35. 'frontend/web/assets',
  36. ],
  37. 'setExecutable' => [
  38. 'yii',
  39. ],
  40. 'setCookieValidationKey' => [
  41. 'backend/config/main-local.php',
  42. 'frontend/config/main-local.php',
  43. ],
  44. ],
  45. 'Production' => [
  46. 'path' => 'prod',
  47. 'setWritable' => [
  48. 'backend/runtime',
  49. 'backend/web/assets',
  50. 'frontend/runtime',
  51. 'frontend/web/assets',
  52. ],
  53. 'setExecutable' => [
  54. 'yii',
  55. ],
  56. 'setCookieValidationKey' => [
  57. 'backend/config/main-local.php',
  58. 'frontend/config/main-local.php',
  59. ],
  60. ],
  61. ];