@dnax/core 0.68.0 → 0.68.1
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/lib/index.ts +11 -10
- package/package.json +1 -1
package/lib/index.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { initCron } from "./cron";
|
|
|
6
6
|
import { loadPermissions } from "./permissions";
|
|
7
7
|
import { loadSocket } from "../lib/socket";
|
|
8
8
|
import { loadAutoRoutes } from "./routes";
|
|
9
|
-
|
|
10
9
|
import { syncAdapterFileSystem } from "./media";
|
|
11
10
|
import { runGenTypes } from "../types/gen";
|
|
12
11
|
import consola from "consola";
|
|
@@ -16,10 +15,10 @@ import ora from "ora";
|
|
|
16
15
|
async function init(cf = { app: null }) {
|
|
17
16
|
console.clear();
|
|
18
17
|
console.log("\n");
|
|
19
|
-
|
|
20
|
-
const spinner = ora("\nInitializing...").start();
|
|
18
|
+
const spinner = ora("Initializing...").start();
|
|
21
19
|
spinner.color = "green";
|
|
22
20
|
|
|
21
|
+
//console.log("🔄 Initializing...".blue);
|
|
23
22
|
await loadSocket();
|
|
24
23
|
//consola.success("Loaded socket");
|
|
25
24
|
// load all tenants database
|
|
@@ -59,15 +58,17 @@ async function init(cf = { app: null }) {
|
|
|
59
58
|
//consola.success("Loaded cron/Tasks");
|
|
60
59
|
|
|
61
60
|
//consola.success("Loaded scripts");
|
|
62
|
-
spinner.clear();
|
|
61
|
+
//spinner.clear();
|
|
63
62
|
spinner.stop();
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"\n
|
|
67
|
-
"\n Your server is up and running\n".green.bold +
|
|
68
|
-
"
|
|
63
|
+
spinner.clear();
|
|
64
|
+
console.log(
|
|
65
|
+
"\n---------------------------------------".gray +
|
|
66
|
+
"\n✨ Your server is up and running\n".green.bold +
|
|
67
|
+
"---------------------------------------\n".gray +
|
|
68
|
+
`🌍 Environment : ${process.env.NODE_ENV || "development"}\n`.gray +
|
|
69
|
+
`🕒 Started at : ${new Date().toLocaleString()}\n`.gray +
|
|
70
|
+
"---------------------------------------\n".gray
|
|
69
71
|
);
|
|
70
|
-
*/
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
export { init };
|