File size: 228 Bytes
0a674c9
 
83dffff
 
0f2b86b
83dffff
0a674c9
 
 
 
 
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
    

    # Run the Flask app using Gunicorn
    os.system("gunicorn -w 4 -b 0.0.0.0:7860 myapp:myapp")  # 4 worker processes