|
@@ -145,13 +145,16 @@ async function initParseAndDatabase(){
|
|
|
/**
|
|
|
* Listen on provided port, on all network interfaces.
|
|
|
*/
|
|
|
- app.listen(global.parseConfig?.port, function() {
|
|
|
+ app.listen(global.parseConfig?.port, async function() {
|
|
|
console.log('微服务已运行,端口 ' + global.parseConfig?.port + '.');
|
|
|
// 迁移数据范式 Schemas
|
|
|
- importAllSchemas();
|
|
|
+ await importAllSchemas();
|
|
|
+ // 导入初始化数据
|
|
|
+ setTimeout(() => {
|
|
|
+ require("./db/func/import-data")
|
|
|
+ }, 500);
|
|
|
});
|
|
|
|
|
|
-
|
|
|
console.log("正在启动管理看板...")
|
|
|
console.log("浏览器管理看板:","http://localhost:61337/dashboard")
|
|
|
}catch(err){
|