add gunicorn
This commit is contained in:
1 parent
95daba5c8a
commit
8245ee3ab4
3 files changed
+6
-4
No files matched your search
@@ -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():
|
||||
# def main(*args, **kwargs):
|
||||
app.register_blueprint(user_routes)
|
||||
app.register_blueprint(stream_routes)
|
||||
|
||||
app.run(host=settings.HOST, port=settings.PORT)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
app.run(host=settings.HOST, port=settings.PORT)
|
||||
# main()
|
||||
Reference in new issue
Block a user