This commit is contained in:
2021-04-13 17:27:27 +08:00
parent fd47bad47f
commit 45c8496d88
+3 -1
View File
@@ -39,7 +39,9 @@ class Command extends \Console\Command
if (!in_array($dtl->get('action'), self::ACTIONS)) {
return 'I don\'t know what I want to do.';
}
if (!file_exists(storage('runtime.php'))) {
exec(PHP_BINARY . ' snowflake runtime:builder');
}
/** @var Shutdown $shutdown */
$shutdown = Snowflake::app()->get('shutdown');
if ($shutdown->isRunning() && $dtl->get('action') == 'start') {