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