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