A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Deploying to heroku troubleshooting
-
@gndimitro Ah! Heroku needs to tell your app which port to run on. An update to config.js to take the environment’s
PORT
value into account may do the trick:port: process.env.PORT || 8080,
-
@dmcinnes Thanks! That worked, now I have different issues but it’s live on heroku now. :)
-
@dmcinnes Actually it’s giving me an odd error in the dev console, it’s saying “process is not defined” and then that breaks my config file so the app is running but not working correctly, do you have any ideas?
-
@dmcinnes I changed my port value to
port: process.env.PORT
, just for heroku. -
@dmcinnes So I found a solution! I changed a line in server.js to
server.listen(process.env.PORT || config.port);
and that seemed to work, it didn’t break my config file -
@gndimitro awesome!