Skip to content

Commit

Permalink
优化 Runtime 扫描和存储 (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow authored Sep 22, 2021
1 parent 502268d commit cff731a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FpmApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ public function loadRuntime(): int
{
$this->initRuntime();
// 尝试加载项目运行时
$fileName = Imi::getRuntimePath('runtime');
$fileName = Imi::getCurrentModeRuntimePath('runtime');
if (!Imi::loadRuntimeInfo($fileName))
{
$fileName = Imi::getRuntimePath('imi-runtime');
$fileName = Imi::getCurrentModeRuntimePath('imi-runtime');
$isBuildRuntime = !Imi::loadRuntimeInfo($fileName, true);
if ($isBuildRuntime)
{
Expand Down

0 comments on commit cff731a

Please sign in to comment.