HCE Project DC service web UI
0.2
Hierarchical Cluster Engine DC service web UI
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
console.php
Go to the documentation of this file.
1
<?php
2
// This is the configuration for yiic console application.
3
// Any writable CConsoleApplication properties can be configured here.
4
return
array(
5
'basePath'
=>dirname(__FILE__).DIRECTORY_SEPARATOR.
'..'
,
6
'name'
=>
'My Console Application'
,
7
8
// preloading 'log' component
9
'preload'
=>array(
'log'
),
10
11
'import'
=>array(
12
'application.modules.*'
,
13
'application.commands.*'
,
14
'application.extensions.*'
,
15
'application.modules.user.models.*'
,
16
'application.modules.job.models.*'
,
17
),
18
19
'modules'
=>array(
20
'user'
=> array(),
21
'job'
=> array()
22
),
23
24
'commandMap'
=> array(
25
'job'
=>
'application.modules.job.commands.JobCommand'
26
),
27
28
// application components
29
'components'
=>array(
30
'jobManager'
=> array(
31
'class'
=>
'application.modules.job.components.JobManager'
,
32
'jobs'
=> array(
33
array(
34
'class'
=>
'DeleteUserTempJob'
,
35
'crontab'
=>
'* */2 * * *'
,
36
'limit'
=> 10
37
),
38
)
39
),
40
/*
41
'db'=>array(
42
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
43
),
44
*/
45
// uncomment the following to use a MySQL database
46
47
'db'
=>array(
48
'connectionString'
=>
'mysql:host=127.0.0.1;dbname=dc_management'
,
49
'tablePrefix'
=>
''
,
50
'emulatePrepare'
=>
true
,
51
'username'
=>
'hce'
,
52
'password'
=>
'hce12345'
,
53
'charset'
=>
'utf8'
,
54
'enableProfiling'
=>
true
,
55
'enableParamLogging'
=>
true
,
56
),
57
58
'log'
=>array(
59
'class'
=>
'CLogRouter'
,
60
'routes'
=>array(
61
array(
62
'class'
=>
'CFileLogRoute'
,
63
'levels'
=>
'error, warning'
,
64
),
65
),
66
),
67
),
68
);
app
protected
config
console.php
Generated on Tue Jun 30 2015 20:12:30 for HCE Project DC service web UI by
1.8.1.2