mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: skip app/started hook on cli mode
This commit is contained in:
1 parent
01d9879ebf
commit
7fb5a9cae9
2 files changed
+1
-1
No files matched your search
@@ -106,6 +106,5 @@ export async function load() {
|
||||
await model(pending, fail);
|
||||
require('../script/index');
|
||||
await script(pending, fail, []);
|
||||
await bus.parallel('app/started');
|
||||
await cli();
|
||||
}
|
||||
@@ -74,6 +74,7 @@ export async function load() {
|
||||
}
|
||||
|
||||
export async function loadCli() {
|
||||
process.env.HYDRO_CLI = 'true';
|
||||
await require('./entry/cli').load();
|
||||
setTimeout(() => process.exit(0), 300);
|
||||
}
|
||||
Reference in new issue
Block a user