add gunicorn
This commit is contained in:
parent
95daba5c8a
commit
8245ee3ab4
|
@ -0,0 +1,2 @@
|
|||
workers = 4 # Adjust this based on your server's capabilities
|
||||
bind = "0.0.0.0:8080" # Use the appropriate IP and port
|
|
@ -2,3 +2,4 @@ bcrypt
|
|||
flask
|
||||
pyjwt
|
||||
tinydb
|
||||
gunicorn
|
||||
|
|
|
@ -13,12 +13,11 @@ app = Flask(__name__)
|
|||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
|
||||
def main():
|
||||
app.register_blueprint(user_routes)
|
||||
app.register_blueprint(stream_routes)
|
||||
|
||||
app.run(host=settings.HOST, port=settings.PORT)
|
||||
# def main(*args, **kwargs):
|
||||
app.register_blueprint(user_routes)
|
||||
app.register_blueprint(stream_routes)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
app.run(host=settings.HOST, port=settings.PORT)
|
||||
# main()
|
||||
|
|
Loading…
Reference in New Issue