add gunicorn
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 1m33s

This commit is contained in:
Karl 2025-07-14 14:03:04 +01:00
parent 5d58e48bb3
commit 2fb86cb23d
2 changed files with 6 additions and 2 deletions

View File

@ -14,6 +14,6 @@ requests==2.32.3
requests-tor @ git+https://github.com/karl0ss/requests_tor.git@ae1e85abb3bb2c25f431bd031c6d881986c626f6 requests-tor @ git+https://github.com/karl0ss/requests_tor.git@ae1e85abb3bb2c25f431bd031c6d881986c626f6
stem==1.8.2 stem==1.8.2
urllib3==2.4.0 urllib3==2.4.0
gunicorn
Flask Flask
PyJWT PyJWT

6
run.sh
View File

@ -1,2 +1,6 @@
#!/bin/bash #!/bin/bash
flask run --host=0.0.0.0 --port=3001 if [ "$FLASK_ENV" = "production" ]; then
gunicorn --bind 0.0.0.0:3001 "ktvmanager.main:create_app()"
else
flask run --host=0.0.0.0 --port=3001
fi