mdztxi2 / app.py
Geek7's picture
Update app.py
39c36a6 verified
raw
history blame
283 Bytes
# app.py
import os
import subprocess
if __name__ == "__main__":
# Run awake.py in the background
subprocess.Popen(["python", "wk.py"]) # Start awake.py
# Run the Flask app using Gunicorn
os.system("gunicorn -w 4 -b 0.0.0.0:7860 myapp:myapp") # 4 worker processes