create-headless-lms 0.1.2 → 0.2.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-headless-lms",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "create-headless-lms": "dist/index.js"
@@ -16,7 +16,16 @@ const container = await createContainer(config, {
16
16
  });
17
17
  const app = await buildServer(config, container);
18
18
 
19
- app.listen({ port: config.port, host: config.host }).catch((err) => {
19
+ try {
20
+ await app.listen({ port: config.port, host: config.host });
21
+ } catch (err) {
20
22
  app.log.error(err);
21
23
  process.exit(1);
24
+ }
25
+
26
+ container.outboxRelay.start();
27
+ container.automationEngine.start().catch((err) => {
28
+ container.logger.error("automation engine failed to start", {
29
+ err: err instanceof Error ? err : new Error(String(err)),
30
+ });
22
31
  });