|
1 | 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 | | - * 'skipFiles' => [ |
13 | | - * // list of files that should only copied once and skipped if they already exist |
14 | | - * ], |
15 | | - * 'setWritable' => [ |
16 | | - * // list of directories that should be set writable |
17 | | - * ], |
18 | | - * 'setExecutable' => [ |
19 | | - * // list of files that should be set executable |
20 | | - * ], |
21 | | - * 'setCookieValidationKey' => [ |
22 | | - * // list of config files that need to be inserted with automatically generated cookie validation keys |
23 | | - * ], |
24 | | - * 'createSymlink' => [ |
25 | | - * // list of symlinks to be created. Keys are symlinks, and values are the targets. |
26 | | - * ], |
27 | | - * ], |
28 | | - * ]; |
29 | | - * ``` |
30 | | - */ |
31 | | - return [ |
32 | | - 'Development' => [ |
33 | | - 'path' => 'dev', |
34 | | - 'setWritable' => [ |
35 | | - 'backend/runtime', |
36 | | - 'backend/web/assets', |
37 | | - 'console/runtime', |
38 | | - 'frontend/runtime', |
39 | | - 'frontend/web/assets', |
40 | | - ], |
41 | | - 'setExecutable' => [ |
42 | | - 'yii', |
43 | | - 'yii_test', |
44 | | - ], |
45 | | - 'setCookieValidationKey' => [ |
46 | | - 'backend/config/main-local.php', |
47 | | - 'common/config/codeception-local.php', |
48 | | - 'frontend/config/main-local.php', |
49 | | - ], |
| 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 | + * 'skipFiles' => [ |
| 13 | + * // list of files that should only copied once and skipped if they already exist |
| 14 | + * ], |
| 15 | + * 'setWritable' => [ |
| 16 | + * // list of directories that should be set writable |
| 17 | + * ], |
| 18 | + * 'setExecutable' => [ |
| 19 | + * // list of files that should be set executable |
| 20 | + * ], |
| 21 | + * 'setCookieValidationKey' => [ |
| 22 | + * // list of config files that need to be inserted with automatically generated cookie validation keys |
| 23 | + * ], |
| 24 | + * 'createSymlink' => [ |
| 25 | + * // list of symlinks to be created. Keys are symlinks, and values are the targets. |
| 26 | + * ], |
| 27 | + * ], |
| 28 | + * ]; |
| 29 | + * ``` |
| 30 | + */ |
| 31 | +return [ |
| 32 | + 'Local' => [ |
| 33 | + 'path' => 'local', |
| 34 | + 'setWritable' => [ |
| 35 | + 'api/runtime', |
| 36 | + 'console/runtime', |
50 | 37 | ], |
51 | | - 'Production' => [ |
52 | | - 'path' => 'prod', |
53 | | - 'setWritable' => [ |
54 | | - 'backend/runtime', |
55 | | - 'backend/web/assets', |
56 | | - 'console/runtime', |
57 | | - 'frontend/runtime', |
58 | | - 'frontend/web/assets', |
59 | | - ], |
60 | | - 'setExecutable' => [ |
61 | | - 'yii', |
62 | | - ], |
63 | | - 'setCookieValidationKey' => [ |
64 | | - 'backend/config/main-local.php', |
65 | | - 'frontend/config/main-local.php', |
66 | | - ], |
| 38 | + 'setExecutable' => [ |
| 39 | + 'yii', |
| 40 | + 'yii_test', |
67 | 41 | ], |
68 | | - ]; |
| 42 | + 'setCookieValidationKey' => [], |
| 43 | + ], |
| 44 | +]; |
0 commit comments