Commit 72d8658a authored by tufengqi's avatar tufengqi

fix config

parent d59dbbc6
...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
// App name // App name
!defined('APP_NAME') && define('APP_NAME', 'swoft'); !defined('APP_NAME') && define('APP_NAME', 'swoft');
// Project base path // Project base path
!defined('BASE_PATH') && define('BASE_PATH', SWOOLE_MIDDLE_ROOT . DIRECTORY_SEPARATOR . 'application/'); !defined('BASE_PATH') && define('BASE_PATH', SWOOLE_MIDDLE_ROOT . DS . 'application', 1);
// Register alias // Register alias
$aliases = [ $aliases = [
'@root' => BASE_PATH, '@root' => BASE_PATH,
'@env' => '@root', '@env' => '@root',
'@app' => '@root/app', '@app' => '@root/app',
'@res' => '@root/resources', '@res' => '@root/resources',
'@runtime' => '@root/runtime', '@runtime' => dirname(__DIR__) . '/runtime',
'@configs' => __DIR__, '@configs' => __DIR__,
'@resources' => '@root/resources', '@resources' => '@root/resources',
'@beans' => '@configs/beans', '@beans' => '@configs/beans',
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
]); ]);
return [ return [
'env' => env('APP_ENV', 'test'), 'env' => env('APP_ENV', 'test'),
'debug' => env('APP_DEBUG', true), 'debug' => env('APP_DEBUG', false),
'version' => '1.0', 'version' => '1.0',
'autoInitBean' => true, 'autoInitBean' => true,
'excludeScan' => [], 'excludeScan' => [],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment