You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					64 lines
				
				1.8 KiB
			
		
		
			
		
	
	
					64 lines
				
				1.8 KiB
			| 
								 
											8 years ago
										 
									 | 
							
								<?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' => [
							 | 
						||
| 
								 | 
							
								        'path' => 'dev',
							 | 
						||
| 
								 | 
							
								        'setWritable' => [
							 | 
						||
| 
								 | 
							
								            'backend/runtime',
							 | 
						||
| 
								 | 
							
								            'backend/web/assets',
							 | 
						||
| 
								 | 
							
								            'frontend/runtime',
							 | 
						||
| 
								 | 
							
								            'frontend/web/assets',
							 | 
						||
| 
								 | 
							
								        ],
							 | 
						||
| 
								 | 
							
								        'setExecutable' => [
							 | 
						||
| 
								 | 
							
								            'yii',
							 | 
						||
| 
								 | 
							
								            'yii_test',
							 | 
						||
| 
								 | 
							
								        ],
							 | 
						||
| 
								 | 
							
								        'setCookieValidationKey' => [
							 | 
						||
| 
								 | 
							
									        'common/config/params-local.php',
							 | 
						||
| 
								 | 
							
								        ],
							 | 
						||
| 
								 | 
							
								    ],
							 | 
						||
| 
								 | 
							
								    'Production' => [
							 | 
						||
| 
								 | 
							
								        'path' => 'prod',
							 | 
						||
| 
								 | 
							
								        'setWritable' => [
							 | 
						||
| 
								 | 
							
								            'backend/runtime',
							 | 
						||
| 
								 | 
							
								            'backend/web/assets',
							 | 
						||
| 
								 | 
							
								            'frontend/runtime',
							 | 
						||
| 
								 | 
							
								            'frontend/web/assets',
							 | 
						||
| 
								 | 
							
								        ],
							 | 
						||
| 
								 | 
							
								        'setExecutable' => [
							 | 
						||
| 
								 | 
							
								            'yii',
							 | 
						||
| 
								 | 
							
								        ],
							 | 
						||
| 
								 | 
							
								        'setCookieValidationKey' => [
							 | 
						||
| 
								 | 
							
									        'common/config/params-local.php',
							 | 
						||
| 
								 | 
							
								        ],
							 | 
						||
| 
								 | 
							
								    ],
							 | 
						||
| 
								 | 
							
								];
							 |