Get base files closer to being bootstrappable
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user