-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruckusing.conf.php
57 lines (47 loc) · 1.92 KB
/
ruckusing.conf.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
55
56
57
<?php
date_default_timezone_set('UTC');
//----------------------------
// DATABASE CONFIGURATION
//----------------------------
/*
Valid types (adapters) are Postgres & MySQL:
'type' must be one of: 'pgsql' or 'mysql' or 'sqlite'
*/
$db = include __DIR__ . '/config/database.php';
return array(
'db' => array(
'development' => array(
'type' => 'mysql',
'host' => $db['development']['host'],
'port' => $db['development']['port'],
'database' => $db['development']['database'],
'user' => $db['development']['username'],
'password' => $db['development']['password'],
'charset' => 'utf8',
//'directory' => 'custom_name',
//'socket' => '/var/run/mysqld/mysqld.sock'
),
'test' => array(
'type' => 'mysql',
'host' => $db['test']['host'],
'port' => $db['test']['port'],
'database' => $db['test']['database'],
'user' => $db['test']['username'],
'password' => $db['test']['password'],
'charset' => 'utf8',
),
'production' => array(
'type' => 'mysql',
'host' => $db['production']['host'],
'port' => $db['production']['port'],
'database' => $db['production']['database'],
'user' => $db['production']['username'],
'password' => $db['production']['password'],
'charset' => 'utf8',
)
),
'migrations_dir' => array('default' => RUCKUSING_WORKING_BASE . '/migrations'),
'db_dir' => RUCKUSING_WORKING_BASE . DIRECTORY_SEPARATOR . 'db',
'log_dir' => RUCKUSING_WORKING_BASE . DIRECTORY_SEPARATOR . 'logs',
'ruckusing_base' => __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'ruckusing' . DIRECTORY_SEPARATOR . 'ruckusing-migrations'
);