Blame view

environments/index.php 2.19 KB
1755c393   Yarik   Basic template in...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  <?php
  /**
   * The manifest of files that are local to specific environment.
   * This file returns a list of environments that the application
   * may be installed under. The returned data must be in the following
   * format:
   *
   * ```php
   * return [
   *     'environment name' => [
   *         'path' => 'directory storing the local files',
   *         'skipFiles'  => [
   *             // list of files that should only copied once and skipped if they already exist
   *         ],
   *         'setWritable' => [
   *             // list of directories that should be set writable
   *         ],
   *         'setExecutable' => [
   *             // list of files that should be set executable
   *         ],
   *         'setCookieValidationKey' => [
   *             // list of config files that need to be inserted with automatically generated cookie validation keys
   *         ],
   *         'createSymlink' => [
   *             // list of symlinks to be created. Keys are symlinks, and values are the targets.
   *         ],
   *     ],
   * ];
   * ```
   */
  return [
      'Development' => [
2c498f60   Yarik   Initializer compl...
33
34
          'path'                   => 'dev',
          'setWritable'            => [
1755c393   Yarik   Basic template in...
35
36
37
38
              'backend/runtime',
              'backend/web/assets',
              'frontend/runtime',
              'frontend/web/assets',
1ceb3338   Alexey Boroda   -Added gallery
39
40
              'common/config/filedb',
              'storage',
1755c393   Yarik   Basic template in...
41
          ],
2c498f60   Yarik   Initializer compl...
42
          'setExecutable'          => [
1755c393   Yarik   Basic template in...
43
44
45
46
47
48
49
              'yii',
              'yii_test',
          ],
          'setCookieValidationKey' => [
              'backend/config/main-local.php',
              'frontend/config/main-local.php',
          ],
2c498f60   Yarik   Initializer compl...
50
          'setDbConnection'        => 'common/config/main-local.php',
1755c393   Yarik   Basic template in...
51
52
      ],
      'Production' => [
2c498f60   Yarik   Initializer compl...
53
54
          'path'                   => 'prod',
          'setWritable'            => [
1755c393   Yarik   Basic template in...
55
56
57
58
              'backend/runtime',
              'backend/web/assets',
              'frontend/runtime',
              'frontend/web/assets',
1ceb3338   Alexey Boroda   -Added gallery
59
60
              'common/config/filedb',
              'storage',
1755c393   Yarik   Basic template in...
61
          ],
2c498f60   Yarik   Initializer compl...
62
          'setExecutable'          => [
1755c393   Yarik   Basic template in...
63
64
65
66
67
68
              'yii',
          ],
          'setCookieValidationKey' => [
              'backend/config/main-local.php',
              'frontend/config/main-local.php',
          ],
2c498f60   Yarik   Initializer compl...
69
          'setDbConnection'        => 'common/config/main-local.php',
1755c393   Yarik   Basic template in...
70
71
      ],
  ];