it works fine on local
but after deployment on heroku and using clearDb
add on for database, it is not running there
it gets stucked on database error
plz debug this problem
Deployed web app is not working
link to log screenshots
@karansehgal151998 there is “table doesn’t exist”, first create the table, as the database is new, there is not table present.
@karansehgal151998 try creating the tables first, and then you will be able to run the code without any error
code that creates table is written in db.js u can see
u can see code from the given repo link
@karansehgal151998 there are two ways you can make it work, first one is to create the table manually in the heroku, follow the steps shown here
second is to use heroku postgres addon, which is much simpler to use than cleardb addon by heroku, postgres allows to focus on the project rather than the database management, follow the steps here
https://sequelize.readthedocs.io/en/1.7.0/articles/heroku/
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.