-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.config.php
More file actions
42 lines (37 loc) · 966 Bytes
/
example.config.php
File metadata and controls
42 lines (37 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Production environment config.
*/
$prod['db'] = array(
'user' => 'prod_db_user',
'pass' => 'prod_db_pass',
'host' => 'prod_db_host'
);
$prod['cache_path'] = 'my/prod/path/cache';
$prod['base_url'] = 'http://config.com';
$prod['key3'] = 'prod key3';
$config['prod'] = $prod;
/**
* Pre production environment config.
*/
$pre = $prod; // Pre environment inherits from production environment.
$pre['db'] = array(
'user' => 'pre_db_user',
'pass' => 'pre_db_pass',
'host' => 'pre_db_host'
);
$pre['cache_path'] = 'my/pre/path/cache';
$pre['base_url'] = 'http://config.vm';
$pre['pass'] = 'pre_pass';
$pre['key2'] = 'pre key2';
$pre['key3'] = 'pre key3';
$config['pre'] = $pre;
/**
* Dev environment config.
*/
$dev = $pre; // Dev environment inherits from pre environment.
$dev['only_dev'] = 'only_dev';
$dev['base_url'] = 'http://config.local';
$dev['cache_path'] = 'my/dev/path/cache';
$config['dev'] = $dev;
return $config;