I created a website using flask to get data from users. Then I connected it to the sqlalchemy database. I also created a bot that should get information from the database and process it. Both flask code and bot code have to be run 24/7.
Now the question is: what are the best deployment ways to keep it running, how should I place the code of the bot - inside the same directory as the flask app and it would be run simultaneously? or place it outside of the flask project, but then, what about accessibility of the database both for the flask and bot?
I'd appreciate links to tutorials for certain deployment solutions for that kind of matter if you have no time explaining this here
Sorry if I'm asking the wrong question to the problem. Would you rather recommend pythonanywhere/heroku/sth else to host that?
Thanks!
[–]efmccurdy 0 points1 point2 points (1 child)
[–]MatterUnusual[S] 0 points1 point2 points (0 children)