Created
December 20, 2017 23:34
-
-
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!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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