Skip to content

Instantly share code, notes, and snippets.

@searleb
Created December 20, 2017 23:34
Show Gist options
  • Save searleb/15792aa6f1c9c18d39e99fc15d9d1415 to your computer and use it in GitHub Desktop.
Save searleb/15792aa6f1c9c18d39e99fc15d9d1415 to your computer and use it in GitHub Desktop.
502 Bad Request Error when deploying node to AWS? Add this line that isn't documented anywhere!
const port = process.env.PORT || 3001 // your local port
app.listen(port, () => {
console.log(`Server running on port ${port}/`)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment