4d01e13a84
* Revert "Revert structured logging 2 (#1240)"
This reverts commit 78ecaeffcb.
* Logging should not be bundled into core shared directory
* making sure observability stuff isnt bundled into frontend
Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
18 lines
507 B
JavaScript
Executable File
18 lines
507 B
JavaScript
Executable File
#!/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))
|
|
|
|
// 💥
|