lucasmontano / twitch

[EBS] Channel's Top Visitors
https://www.twitch.tv/lucas_montano
119 stars 15 forks source link

Fix undefined on message when displaying the PORT number #16

Closed lucasmontano closed 4 years ago

lucasmontano commented 4 years ago

🚀 Server ready at undefined

fernandovfilho commented 4 years ago

This message is because you need to rename .env.example to .env to set the environment var PORT, this file is used by dotenv package to set environments vars and in Heroku they set var PORT for you automatically because there you are in a shared environment and they choose the port.

In resume this file is like local.properties in a Android project.

AlderFurtado commented 4 years ago

If you use Heroku, sometimes, you need set in heroku the enviroment variables

To fix that, in heroku, go in settings, Config Vars and add the variables

I hope that help :)