This commit is contained in:
2021-03-05 16:57:12 +08:00
parent 2fedf6dd88
commit 4c49bbbdd0
5 changed files with 24 additions and 7 deletions
+2 -2
View File
@@ -109,9 +109,9 @@ class Application extends BaseApplication
{
try {
fire(Event::SERVER_BEFORE_START);
if (env('debug') === 'false') {
if (env('debug') == 'false') {
$annotation = Snowflake::app()->getAttributes();
$annotation->read(APP_PATH . 'app', 'App');
$annotation->read(directory('app'), 'App');
}
$manager = Snowflake::app()->get('console');
$manager->setParameters($argv);
+1 -1
View File
@@ -40,7 +40,7 @@ class ServerInotify extends Process
public function onHandler(\Swoole\Process $process): void
{
set_error_handler([$this, 'onErrorHandler']);
if (env('debug') !== 'true') {
if (env('debug') != 'true') {
Timer::tick(100000, function () {
});