Instantly share code, notes, and snippets.

What would you like to do?
// Port for deployment will be set as an env variable
const port = parseInt(process.env.PORT, 10) || config.serverPort;
// Heroku deployment requires '' as host to be specified
const host = config.serverHost;
await nestApp.init();
expressApp.listen(port, host);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment