Geek7 commited on
Commit
ffa3de2
·
verified ·
1 Parent(s): d602aa2

Update app.py

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