mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
问题修复
This commit is contained in:
1 parent
4c2edc3948
commit
26c467f60f
10 files changed
+106
-106
No files matched your search
@@ -19,11 +19,13 @@ process.on('restart', async () => {
|
||||
const path = require('path');
|
||||
const i18n = require('./lib/i18n');
|
||||
i18n(path.resolve(__dirname, '..', 'locales', 'zh_CN.yaml'), 'zh_CN');
|
||||
|
||||
i18n(path.resolve(__dirname, '..', 'locales', 'zh_TW.yaml'), 'zh_TW');
|
||||
i18n(path.resolve(__dirname, '..', 'locales', 'en.yaml'), 'en');
|
||||
|
||||
const EventEmitter = require('events');
|
||||
global.bus = new EventEmitter();
|
||||
async function run() {
|
||||
require('./utils');
|
||||
require('./service/db');
|
||||
await new Promise((resolve) => {
|
||||
global.bus.once('connected', () => {
|
||||
|
||||
Reference in new issue
Block a user