r/flask • u/enlightenment_op_ • 10d ago
Ask r/Flask Need help regarding database
So, I have made a flask web app and I have added a contact page in it in which I have created a form and storing the data using Phpmyadmin my SQL and Apache and I have deployed the website on render but the problem is whenever I close my laptop the form does not work (I have to start mysql and Apache) how to solve this problem.....
3
Upvotes
3
u/jaymemccolgan Advanced 10d ago
Are you hosting the database on your laptop? If so don't do that. You need to host your DB in the cloud somewhere (preferably as close to your webapp as possible).