flk / app.py
Geek7's picture
Update app.py
3ee7a1f verified
raw
history blame
199 Bytes
import os
if __name__ == "__main__":
# Run the Flask app using Gunicorn in the background with nohup
os.system("nohup gunicorn -w 4 -b 0.0.0.0:7860 myapp:myapp > gunicorn_output.log 2>&1 &")