diff --git a/requirements.txt b/requirements.txt index b7d5bdd..c9a5a04 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,6 +14,6 @@ requests==2.32.3 requests-tor @ git+https://github.com/karl0ss/requests_tor.git@ae1e85abb3bb2c25f431bd031c6d881986c626f6 stem==1.8.2 urllib3==2.4.0 - +gunicorn Flask PyJWT diff --git a/run.sh b/run.sh index 1c81900..fb28393 100644 --- a/run.sh +++ b/run.sh @@ -1,2 +1,6 @@ #!/bin/bash -flask run --host=0.0.0.0 --port=3001 \ No newline at end of file +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 \ No newline at end of file