Tuesday 16 March 2021

How do I use Heroku Postgres with my flask-sqlalchemy app?

Right now I have an app that write data for users to a database file called users.sql. However, I pushed this to heroku through github and the data doesn't stick. If a certain time has passed, heroku will sleep and all the files will have to be redeployed when another login is detected. I heard that I could add heroku postgres as an addon to heroku but I am not sure what to do to integrate this with my current code. What do I do to set it up?



from How do I use Heroku Postgres with my flask-sqlalchemy app?

No comments:

Post a Comment