Add auto update component

This commit is contained in:
Alice Gaudon 2020-05-05 15:26:28 +02:00
parent 3d90da62e5
commit 8149ecac71

View File

@ -17,6 +17,7 @@ import FormHelperComponent from "wms-core/components/FormHelperComponent";
import CsrfProtectionComponent from "wms-core/components/CsrfProtectionComponent"; import CsrfProtectionComponent from "wms-core/components/CsrfProtectionComponent";
import WebSocketServerComponent from "wms-core/components/WebSocketServerComponent"; import WebSocketServerComponent from "wms-core/components/WebSocketServerComponent";
import HomeController from "./controllers/HomeController"; import HomeController from "./controllers/HomeController";
import AutoUpdateComponent from "wms-core/components/AutoUpdateComponent";
export default class ExampleApp extends Application { export default class ExampleApp extends Application {
private readonly port: number; private readonly port: number;
@ -56,6 +57,7 @@ export default class ExampleApp extends Application {
this.use(new MaintenanceComponent(this, () => { this.use(new MaintenanceComponent(this, () => {
return redisComponent.canServe() && mysqlComponent.canServe(); return redisComponent.canServe() && mysqlComponent.canServe();
})); }));
this.use(new AutoUpdateComponent());
// Services // Services
this.use(mysqlComponent); this.use(mysqlComponent);