Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

8 år sedan
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. ];