@defra-fish/gafl-webapp-service
Version:
The websales frontend for the GAFL service
14 lines (12 loc) • 316 B
JavaScript
import { createServer, init, shutdownBehavior } from './server.js'
import { PORT_DEFAULT } from './constants.js'
/**
* Create and start the web-server (once)
*/
createServer({ port: process.env.PORT || PORT_DEFAULT })
init()
.then(shutdownBehavior)
.catch(e => {
console.error(e)
process.exit(1)
})