You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
374 B

import server from './bootstrap.js'
// let it rain
const start = async () => {
const port = !process.env.APP_PORT ? 3000 : process.env.APP_PORT
try {
await server.listen({
port: port
})
console.log('Server started! Run on Port ' + port)
} catch (error) {
console.log(error)
process.exit(1)
}
}
start()