So i made a react website that fetches data from my flask app, it works on my localhost without any problem,i know that to host the react app on ovh i just need to copy the build folder but i don't know how to host the flask app.
I tried hosting the flask app on pythonanywhere but since the flask app uses os.listdir()
to scan some assets i can't host it.
I also tried to host it on ovh but apparently i can't do that with a normal hosting plan.
How can i host this flask app ?
I have some experience working with file assets in the Flask app. Heroku worked for me.
But if you want to have an advanced setup, you can use Docker and deploy it to any cloud service.
Deploy Flask App on Heroku https://www.jcchouinard.com/deploy-a-flask-app-on-heroku/
My project with Flask + Heroku https://github.com/alfanme/dts-deployment-ann
Hope it helps!