mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
23 lines
647 B
TypeScript
23 lines
647 B
TypeScript
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
import { CONFIG } from '@/config'
|
|
|
|
import createServer from './server/createServer'
|
|
|
|
async function main() {
|
|
// eslint-disable-next-line no-console
|
|
console.log(`DLT_CONNECTOR_PORT=${CONFIG.DLT_CONNECTOR_PORT}`)
|
|
const { app } = await createServer()
|
|
|
|
app.listen(CONFIG.DLT_CONNECTOR_PORT, () => {
|
|
// eslint-disable-next-line no-console
|
|
console.log(`Server is running at http://localhost:${CONFIG.DLT_CONNECTOR_PORT}`)
|
|
})
|
|
}
|
|
|
|
main().catch((e) => {
|
|
// eslint-disable-next-line no-console
|
|
console.error(e)
|
|
// eslint-disable-next-line n/no-process-exit
|
|
process.exit(1)
|
|
})
|