App runs locally but not on Heroku

App runs locally but not on Heroku
0

#1

Hello everyone!
I’ve been struggling with this for a while. I have app https://github.com/AlRum/stock_market_app
which runs fine locally. It loads on Heroku https://stock-market-app-alrum.herokuapp.com/ but most of the functions do not work (graphs is not loading for example). I suspect there is some problem with mongodb but there are no errors in Heroku logs.
Any help is appreciated.


#2

You shouldn’t publish your database password on GitHub (See: https://github.com/AlRum/stock_market_app/blob/app/db.js) use enviroment variables for that. Now anyone can at will harm your database and we don’t want that.