Instantly share code, notes, and snippets.

Embed
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 '0.0.0.0' 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