Issue
I have a small application written in Python using Flask. Right now I'm running it under nohup, but I'd like to daemonize it. What's the proper way of doing this?
Solution
There are several ways to deploy a Flask project. Deploying with gunicorn might be the easiest, install gunicorn and then:
gunicorn project:app --daemon
Although you probably want to use supervisor or something of that nature to monitor gunicorn (at the very least use --pid
so you can reload/stop gunicorn easily).
Answered By - zeekay
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.