Get base files closer to being bootstrappable

This commit is contained in:
2026-02-08 09:19:27 -05:00
parent 98f1f554c1
commit 82e87577cc
10 changed files with 177 additions and 114 deletions

View File

@@ -1,14 +1,7 @@
import{cli}from'./diachron/cli'
import { formatError } from './diachron/errors';
// This is a sample file provided by diachron. You are encouraged to modify it.
process.on('uncaughtException', (err) => {
console.error(formatError(err));
process.exit(1);
});
process.on('unhandledRejection', (reason) => {
console.error(formatError(reason));
});
import { core } from "./diachron/core";
@@ -24,8 +17,4 @@ core.logging.log({ source: "logging", text: ["1"] });
app.listen(cli.listen.port, cli.listen.host, () => {
console.log(`Listening on ${cli.listen.host}:${cli.listen.port}`);
});
app.start()