@quintype/framework 6.1.5-webpack5.5 → 6.1.5-webpack5.6
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/package.json +1 -1
- package/server/start.js +6 -4
package/package.json
CHANGED
package/server/start.js
CHANGED
|
@@ -15,7 +15,7 @@ const cluster = require("cluster");
|
|
|
15
15
|
const process = require("process");
|
|
16
16
|
const { initializeAllClients } = require("./api-client");
|
|
17
17
|
const logger = require("./logger");
|
|
18
|
-
const logSuccess = chalk.bold.
|
|
18
|
+
const logSuccess = chalk.bold.cyanBright;
|
|
19
19
|
|
|
20
20
|
function startMaster({ workers = 4 }) {
|
|
21
21
|
let terminating = false;
|
|
@@ -73,9 +73,11 @@ async function startWorker(appThunk, opts) {
|
|
|
73
73
|
const app = appThunk();
|
|
74
74
|
|
|
75
75
|
await initializeAllClients();
|
|
76
|
-
const server = app.listen(opts.port || 3000, () =>
|
|
77
|
-
console.log(logSuccess(
|
|
78
|
-
|
|
76
|
+
const server = app.listen(opts.port || 3000, () =>{
|
|
77
|
+
console.log(logSuccess(`||=============================================||`));
|
|
78
|
+
console.log(logSuccess(`|| App listening on port ${opts.port || 3000}! ||`))
|
|
79
|
+
console.log(logSuccess(`||=============================================||`));
|
|
80
|
+
});
|
|
79
81
|
|
|
80
82
|
process.on("SIGTERM", () => {
|
|
81
83
|
server.close(() => {
|