commit
8aae1983dd
@ -1,20 +1,20 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [0.9] - 2019-10-29
|
## [0.9] - 2019-10-29
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Graphql Schema
|
- Graphql Schema
|
||||||
- default-config file and generation of config file on startup
|
- default-config file and generation of config file on startup
|
||||||
- DTOs
|
- DTOs
|
||||||
- Home Route
|
- Home Route
|
||||||
- session management
|
- session management
|
||||||
- Sequelize models and integration
|
- Sequelize models and integration
|
||||||
- Sequelize-typescript integration
|
- Sequelize-typescript integration
|
||||||
- error pages
|
- error pages
|
||||||
- pagination for most list types
|
- pagination for most list types
|
||||||
- angular integration by redirecting to `index.html` on not found
|
- angular integration by redirecting to `index.html` on not found
|
||||||
|
@ -1,11 +1,26 @@
|
|||||||
|
// tslint:disable:no-console
|
||||||
|
import * as cluster from "cluster";
|
||||||
import App from "./app";
|
import App from "./app";
|
||||||
|
const numCPUs = require("os").cpus().length;
|
||||||
|
|
||||||
/**
|
if (cluster.isMaster) {
|
||||||
* async main function wrapper.
|
console.log(`[CLUSTER] Master ${process.pid} is running`);
|
||||||
*/
|
for (let i = 0; i < numCPUs; i++) {
|
||||||
(async () => {
|
cluster.fork();
|
||||||
const app = new App();
|
}
|
||||||
await app.init();
|
cluster.on("exit", (worker, code, signal) => {
|
||||||
app.start();
|
console.log(`[CLUSTER] Worker ${worker.process.pid} died!`);
|
||||||
})();
|
});
|
||||||
|
} else {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* async main function wrapper.
|
||||||
|
*/
|
||||||
|
(async () => {
|
||||||
|
const app = new App(process.pid);
|
||||||
|
await app.init();
|
||||||
|
app.start();
|
||||||
|
})();
|
||||||
|
|
||||||
|
console.log(`[CLUSTER] Worker ${process.pid} started`);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue