Geek7 commited on
Commit
3ee7a1f
·
verified ·
1 Parent(s): 9f4f013

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import os
2
 
3
  if __name__ == "__main__":
4
- # Run the Flask app using Gunicorn
5
- os.system("gunicorn -w 4 -b 0.0.0.0:7860 myapp:myapp") # 4 worker processes
 
1
  import os
2
 
3
  if __name__ == "__main__":
4
+ # Run the Flask app using Gunicorn in the background with nohup
5
+ os.system("nohup gunicorn -w 4 -b 0.0.0.0:7860 myapp:myapp > gunicorn_output.log 2>&1 &")