Commit 05f2f0fb authored by tufengqi's avatar tufengqi

mod console

parent 5a440c8e
/vendor
/build
.DS_Store
.idea
/composer.lock
*/runtime
\ No newline at end of file
...@@ -5,9 +5,10 @@ $index_root_path = '/mnt/d/data/'; ...@@ -5,9 +5,10 @@ $index_root_path = '/mnt/d/data/';
$app_root_path = $index_root_path . 'swoole_thrift_impl/market-service-impl'; $app_root_path = $index_root_path . 'swoole_thrift_impl/market-service-impl';
$app_package_path = $index_root_path . 'swoole_thrift_impl'; $app_package_path = $index_root_path . 'swoole_thrift_impl';
/* 需要修改的参数>> */ /* 需要修改的参数>> */
defined('IS_FORCE_ONLINE') or define('IS_FORCE_ONLINE', true); !defined('IS_FORCE_ONLINE') && define('IS_FORCE_ONLINE', true);
defined('IS_SWOOLE_SERVICE') or define('IS_SWOOLE_SERVICE', true); !defined('IS_SWOOLE_SERVICE') && define('IS_SWOOLE_SERVICE', true);
!defined('SWOOLE_MIDDLE_ROOT') && define('SWOOLE_MIDDLE_ROOT', $app_root_path); !defined('SWOOLE_MIDDLE_ROOT') && define('SWOOLE_MIDDLE_ROOT', $app_root_path);
!defined('APP_PACKAGE_PATH') && define('APP_PACKAGE_PATH', $app_package_path);
require_once $app_root_path . '/vendor/swoft_33cn/vendor/autoload.php'; require_once $app_root_path . '/vendor/swoft_33cn/vendor/autoload.php';
require_once $app_root_path . '/vendor/yii2_33cn/vendor/autoload.php'; require_once $app_root_path . '/vendor/yii2_33cn/vendor/autoload.php';
require_once $app_root_path . '/vendor/foge/swoole-yii2/Yii.php'; require_once $app_root_path . '/vendor/foge/swoole-yii2/Yii.php';
......
...@@ -35,7 +35,7 @@ return [ ...@@ -35,7 +35,7 @@ return [
'App\Boot', 'App\Boot',
'foge\swoft\yii' => \Swoft\App::getAlias('@swoft-yii2'), 'foge\swoft\yii' => \Swoft\App::getAlias('@swoft-yii2'),
], ],
'yiiConfig' => require __DIR__ . DS . 'yii.php', 'yiiConfig' => require APP_PACKAGE_PATH . DS . 'app_config/swoole_market_main_web.php',
// 'devtool' => [ // 'devtool' => [
// // 是否开启 DevTool,默认值为 false // // 是否开启 DevTool,默认值为 false
// 'enable' => true, // 'enable' => true,
......
...@@ -10,32 +10,30 @@ ...@@ -10,32 +10,30 @@
'@swoft-yii2' => '@vendor/foge/swoft-yii2/src' '@swoft-yii2' => '@vendor/foge/swoft-yii2/src'
]); ]);
return [ return [
'env' => env('APP_ENV', 'test'), 'env' => env('APP_ENV', 'test'),
'debug' => env('APP_DEBUG', true), 'debug' => env('APP_DEBUG', true),
'version' => '1.0', 'version' => '1.0',
'autoInitBean' => true, 'autoInitBean' => true,
'excludeScan' => [ 'excludeScan' => [],
'I18n' => [
],
'I18n' => [
'sourceLanguage' => '@root/resources/messages/', 'sourceLanguage' => '@root/resources/messages/',
], ],
'db' => require __DIR__ . DS . 'db.php', 'db' => require __DIR__ . DS . 'db.php',
'cache' => require __DIR__ . DS . 'cache.php', 'cache' => require __DIR__ . DS . 'cache.php',
'service' => require __DIR__ . DS . 'service.php', 'service' => require __DIR__ . DS . 'service.php',
'breaker' => require __DIR__ . DS . 'breaker.php', 'breaker' => require __DIR__ . DS . 'breaker.php',
'provider' => require __DIR__ . DS . 'provider.php', 'provider' => require __DIR__ . DS . 'provider.php',
'bootScan' => [ 'bootScan' => [
'App\Commands', 'App\Commands',
'App\Boot', 'App\Boot',
'foge\swoft\yii' => \Swoft\App::getAlias('@swoft-yii2'), 'foge\swoft\yii' => \Swoft\App::getAlias('@swoft-yii2'),
], ],
'beanScan' => [ 'beanScan' => [
'App\Controllers', 'App\Controllers',
'App\Boot', 'App\Boot',
'foge\swoft\yii' => \Swoft\App::getAlias('@swoft-yii2'), 'foge\swoft\yii' => \Swoft\App::getAlias('@swoft-yii2'),
], ],
'yiiConfig' => require __DIR__ . DS . 'yii.php', 'yiiConfig' => require APP_PACKAGE_PATH . DS . 'app_config/swoole_zhaobi_main_web.php',
// 'devtool' => [ // 'devtool' => [
// // 是否开启 DevTool,默认值为 false // // 是否开启 DevTool,默认值为 false
// 'enable' => true, // 'enable' => true,
......
...@@ -5,9 +5,10 @@ $index_root_path = '/mnt/d/data/'; ...@@ -5,9 +5,10 @@ $index_root_path = '/mnt/d/data/';
$app_root_path = $index_root_path . 'swoole_user_site/zhaobi'; $app_root_path = $index_root_path . 'swoole_user_site/zhaobi';
$app_package_path = $index_root_path . 'swoole_user_site'; $app_package_path = $index_root_path . 'swoole_user_site';
/* 需要修改的参数>> */ /* 需要修改的参数>> */
defined('IS_FORCE_ONLINE') or define('IS_FORCE_ONLINE', true); !defined('IS_FORCE_ONLINE') && define('IS_FORCE_ONLINE', true);
defined('IS_SWOOLE_SERVICE') or define('IS_SWOOLE_SERVICE', true); !defined('IS_SWOOLE_SERVICE') && define('IS_SWOOLE_SERVICE', true);
!defined('SWOOLE_MIDDLE_ROOT') && define('SWOOLE_MIDDLE_ROOT', $app_root_path); !defined('SWOOLE_MIDDLE_ROOT') && define('SWOOLE_MIDDLE_ROOT', $app_root_path);
!defined('APP_PACKAGE_PATH') && define('APP_PACKAGE_PATH', $app_package_path);
require_once $app_root_path . '/vendor/swoft_33cn/vendor/autoload.php'; require_once $app_root_path . '/vendor/swoft_33cn/vendor/autoload.php';
require_once $app_root_path . '/vendor/yii2_33cn/vendor/autoload.php'; require_once $app_root_path . '/vendor/yii2_33cn/vendor/autoload.php';
require_once $app_root_path . '/vendor/foge/swoole-yii2/Yii.php'; require_once $app_root_path . '/vendor/foge/swoole-yii2/Yii.php';
......
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