feat: Gunicorn + HTTP POST (base64, retry), drop WebSocket, bump 1.0.19
Deploy loadtest / validate (push) Waiting to run
Deploy loadtest / validate (push) Waiting to run
This commit is contained in:
+8
-2
@@ -7,7 +7,7 @@ from flask_sock import Sock
|
||||
app = Flask(__name__)
|
||||
sock = Sock(app)
|
||||
|
||||
VERSION = '1.0.18'
|
||||
VERSION = '1.0.19'
|
||||
|
||||
|
||||
@app.route('/')
|
||||
@@ -70,4 +70,10 @@ def upload():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0', port=5000, debug=False, threaded=True)
|
||||
import subprocess, sys
|
||||
subprocess.run([sys.executable, '-m', 'gunicorn', 'app:app',
|
||||
'--bind', '0.0.0.0:5000',
|
||||
'--workers', '2',
|
||||
'--threads', '4',
|
||||
'--timeout', '300',
|
||||
'--keep-alive', '5'])
|
||||
|
||||
Reference in New Issue
Block a user