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.
16 lines
333 B
16 lines
333 B
2 years ago
|
import server from './_bootstrap.js'
|
||
|
|
||
|
// let it rain
|
||
|
const start = async () => {
|
||
|
try {
|
||
|
await server.listen({
|
||
|
port: process.env.APP_PORT
|
||
|
})
|
||
|
console.log('Server is running on port ' + process.env.APP_PORT)
|
||
|
} catch (error) {
|
||
|
console.log(error)
|
||
|
process.exit(1)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
start()
|