How to run a flask app in the background , while my entry point file is another file? #395
-
I'm using streamlit for making the front-end therefore, the entry point is a Streamlit file. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I will share in the python channel in our Discord too 🤓 |
Beta Was this translation helpful? Give feedback.
-
Where are you hosting the project? Is it on a server or somewhere else? Have done some Flask before so perhaps with a little more info i would know an answer. |
Beta Was this translation helpful? Give feedback.
-
I found my solution. Instead of using UWSGI default provided by Flask which is single threaded anyway. |
Beta Was this translation helpful? Give feedback.
I found my solution. Instead of using UWSGI default provided by Flask which is single threaded anyway.
I deployed it locally on a port using waitress , then one can use pythonw and set is as a background running startup process at the given port!.
Alternative is to use tmux or screen or python app.py & to run it in the background