-
Notifications
You must be signed in to change notification settings - Fork 11
/
mode_staging.php
54 lines (43 loc) · 1.36 KB
/
mode_staging.php
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
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Staging configuration
* Usage:
* - Online website
* - Production DB
* - All details on error
*/
return array(
// Set YII_DEBUG and YII_TRACE_LEVEL flags
'yiiDebug' => true,
'yiiTraceLevel' => 0,
// This is the specific Web application configuration for this mode.
// Supplied config elements will be merged into the main config array.
'configWeb' => array(
// Application components
'components' => array(
// Database
'db' => array(
'connectionString' => 'mysql:host=STAGING_HOST;dbname=STAGING_DBNAME',
'username' => 'USERNAME',
'password' => 'PASSWORD',
),
// Application Log
'log' => array(
'class' => 'CLogRouter',
'routes' => array(
// Save log messages on file
array(
'class' => 'CFileLogRoute',
'levels' => 'error, warning, trace, info',
),
),
),
),
),
// This is the Console application configuration. Any writable
// CConsoleApplication properties can be configured here.
// Leave array empty if not used.
// Use value 'inherit' to copy from generated configWeb.
'configConsole' => array(
),
);