Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
console.php
1 <?php
2 /**
3  *
4  */
5 Yii::setPathOfAlias('site', dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..');
6 return array(
7  'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
8  'sourceLanguage' => 'en_us',
9  // preloading 'log' component
10  'preload' => array('log'),
11  'charset' => 'UTF-8',
12  //import folders with files, classes
13  'import' => array(
14  'site.common.models.*',
15  'site.common.components.*',
16  'site.common.extensions.*',
17  'site.common.components.content.*',
18  'application.components.*',
19  'application.controllers.*',
20  'ext.*',
21  'system.caching.*'
22  ),
23  //mapping from command name to command configurations
24  'commandMap' => array(
25  'migrate' => array(
26  'class' => 'system.cli.commands.MigrateCommand',
27  //folder contained migrations
28  'migrationPath' => 'site.common.migrations',
29  //migration tablename
30  'migrationTable' => 'gportal_migration',
31  ),
32  ),
33  'components' => array(
34  'db' => array(
35  //DB connection string
36  'connectionString' => 'mysql:host=qa-db-mysql.office;port=35521;dbname=gportal_unittests',
37  //whether to turn on prepare emulation. Defaults to false, meaning PDO will use the native prepare support if available.
38  'emulatePrepare' => true,
39  //the default prefix for table names. Defaults to null, meaning no table prefix.
40  'tablePrefix' => 'gportal_',
41  //DB username
42  'username' => 'gportalunit',
43  //DB Password
44  'password' => 'testix99',
45  'charset' => 'utf8',
46  //whether the database connection should be automatically established the component is being initialized.
47  'autoConnect' => false,
48  //number of seconds that table metadata can remain valid in cache. 86400, 0 - disabled
49  'schemaCachingDuration' => 0,
50  ),
51  'log' => array(
52  'class' => 'CLogRouter',
53  'routes' => array(
54  array(
55  'class' => 'CFileLogRoute',
56  'levels' => 'error, warning',
57  'logPath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'common/runtime',
58  ),
59  ),
60  ),
61  )
62 );