@sentzunhat/zacatl 0.0.0-alpha.3 → 0.0.0-alpha.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/package.json
CHANGED
|
@@ -31,11 +31,13 @@ export class MicroService {
|
|
|
31
31
|
public async start(input: { port: number }): Promise<void> {
|
|
32
32
|
const { port } = input;
|
|
33
33
|
|
|
34
|
-
this.
|
|
34
|
+
await this.service.configureDatabases();
|
|
35
|
+
|
|
36
|
+
this.infrastructure.start();
|
|
35
37
|
|
|
36
38
|
this.domain.start();
|
|
37
39
|
|
|
38
|
-
this.
|
|
40
|
+
this.application.start();
|
|
39
41
|
|
|
40
42
|
this.service.registerHandlers({
|
|
41
43
|
handlers: this.application.routeHandlers,
|
|
@@ -205,7 +205,7 @@ export class Service implements ServicePort {
|
|
|
205
205
|
);
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
|
|
208
|
+
public async configureDatabases(): Promise<void> {
|
|
209
209
|
for (const database of this.databases) {
|
|
210
210
|
const strategy = strategiesForDatabaseVendor[database.vendor];
|
|
211
211
|
|
|
@@ -298,7 +298,7 @@ export class Service implements ServicePort {
|
|
|
298
298
|
private async configure(input: StartInput): Promise<void> {
|
|
299
299
|
const { port } = input;
|
|
300
300
|
|
|
301
|
-
await this.configureDatabases();
|
|
301
|
+
// await this.configureDatabases();
|
|
302
302
|
await this.configureServer();
|
|
303
303
|
await this.startServer({ port });
|
|
304
304
|
}
|