mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
vjudge: do not load in cli mode
This commit is contained in:
1 parent
76f79adb42
commit
8b26e09fb2
1 file changed
+1
@@ -172,6 +172,7 @@ Context.service('vjudge', VJudgeService);
|
||||
export const name = 'vjudge';
|
||||
export async function apply(ctx: Context) {
|
||||
if (process.env.NODE_APP_INSTANCE !== '0') return;
|
||||
if (process.env.HYDRO_CLI) return;
|
||||
const vjudge = new VJudgeService(ctx);
|
||||
await vjudge.start();
|
||||
for (const [k, v] of Object.entries(providers)) {
|
||||
|
||||
Reference in new issue
Block a user