#!/usr/bin/env node 'use strict' /** * Same as 'www', but runs the app from source code directly through ts-node, so no need to build the app into /dist first. * Although ts-node with swc is pretty fast, in production environments you should use `www` and a built app. */ require('ts-node/register') const { logger } = require('../logging/logging') const { init, startHttp } = require('../app') init() .then(({ app, server }) => startHttp(server, app)) .catch((err) => { logger.error(err, 'Failed to start server. Exiting with non-zero exit code...') // kill it with fire 🔥 process.exit(1) }) // 💥