File size: 283 Bytes
ffa3de2
 
9f4f013
64814f3
f66a250
 
64814f3
 
 
ffa3de2
1a8a51d
1
2
3
4
5
6
7
8
9
10
11
# 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:5000 myapp:myapp")  # 4 worker processes