1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php
- $config['database'] = array
- (
-
- 'default' => array
- (
- 'type' => 'pdo',
- 'pdo_type' => 'mysql',
- 'host' => array
- (
- 'read' => 'web-mysql:3306',
- 'update' => 'web-mysql:3306',
-
-
- ),
- 'database' => 'dever',
- 'username' => 'root',
- 'password' => '123456',
- 'charset' => 'utf8',
- ),
- );
- $local = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'localhost';
- $host = 'http://'.$local . '/';
- $assets = DEVER_APP_HOST . 'assets/';
- $project_host = $host . '' . DEVER_PROJECT . '/';
- $package_host = $project_host . 'dever/package/';
- $data_host = $project_host . 'data/';
- if (DEVER_APP_NAME == 'manage') {
- $assets = $package_host . 'manage/assets/';
- }
- $config['host'] = array
- (
-
- 'base' => DEVER_APP_HOST,
-
- 'cookie' => '',
-
-
- 'assets' => $assets,
-
- 'css' => $assets . 'css/',
- 'js' => $assets . 'js/',
- 'img' => $assets . 'img/',
- 'images' => $assets . 'images/',
- 'lib' => $assets . 'lib/',
-
- 'script' => $package_host . 'script/assets/',
-
-
- 'upload'=> $project_host . 'upload/?save',
-
- 'uploadRes' => $data_host . 'upload/',
- );
- return $config;
|