改名
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user