index.php 1.01 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',
Alexander Makarov committed
12
 *         'writable' => [
13
 *             // list of directories that should be set writable
Alexander Makarov committed
14 15 16
 *         ],
 *     ],
 * ];
17 18
 * ```
 */
19
return [
20 21 22
    'Development' => [
        'path' => 'dev',
        'writable' => [
23 24 25 26
            'backend/runtime',
            'backend/web/assets',
            'frontend/runtime',
            'frontend/web/assets',
27 28 29 30 31 32 33 34
        ],
        'executable' => [
            'yii',
        ],
    ],
    'Production' => [
        'path' => 'prod',
        'writable' => [
35 36 37 38
            'backend/runtime',
            'backend/web/assets',
            'frontend/runtime',
            'frontend/web/assets',
39 40 41 42 43
        ],
        'executable' => [
            'yii',
        ],
    ],
44
];