@dnax/core 0.6.4 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/index.ts +2 -2
- package/package.json +1 -1
package/app/index.ts
CHANGED
|
@@ -18,6 +18,8 @@ type configRunApp = {
|
|
|
18
18
|
};
|
|
19
19
|
async function runApp(config?: configRunApp, clb?: Function) {
|
|
20
20
|
hookDatabase.cb = config?.dbSync || [];
|
|
21
|
+
// Load all ressouce
|
|
22
|
+
await init();
|
|
21
23
|
await loadCfg(); // Load Config
|
|
22
24
|
const HonoApp = HonoInstance();
|
|
23
25
|
const PORT = Cfg.server?.port || process.env?.PORT || 4000;
|
|
@@ -36,8 +38,6 @@ async function runApp(config?: configRunApp, clb?: Function) {
|
|
|
36
38
|
await findPort.isAvailable(PORT).then(async (available: boolean) => {
|
|
37
39
|
// Start App server
|
|
38
40
|
if (available) {
|
|
39
|
-
// Load all ressouce
|
|
40
|
-
await init();
|
|
41
41
|
//BeforeStart
|
|
42
42
|
if (config?.beforeStart) {
|
|
43
43
|
for (const fn of config?.beforeStart) {
|