13 lines
357 B
TypeScript
13 lines
357 B
TypeScript
import { buildApp } from "./app.js";
|
|
import { loadConfig } from "./config.js";
|
|
|
|
const config = loadConfig();
|
|
const app = await buildApp({ config });
|
|
|
|
try {
|
|
await app.listen({ host: config.host, port: config.port });
|
|
app.log.info(`Heimdall listening on ${config.host}:${config.port}`);
|
|
} catch (error) {
|
|
app.log.error(error);
|
|
process.exitCode = 1;
|
|
}
|