From c3edaefdaf12ad1978aafd3b8bdfc3fb78713b77 Mon Sep 17 00:00:00 2001 From: sysek Date: Sun, 22 Dec 2024 07:46:04 +0100 Subject: [PATCH] gunicorn --- app.py | 4 ++-- nginx.conf | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 nginx.conf diff --git a/app.py b/app.py index 53f05ec..2bdbacb 100644 --- a/app.py +++ b/app.py @@ -2,10 +2,10 @@ from flask import Flask, render_template from bpy2 import bp, bp2 app = Flask(__name__) -app.register_blueprint(bp) -app.register_blueprint(bp2) @app.route("/") def index(): return render_template('maint.html') +if __name__ == '__main__': + app.run() diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..abeb6f3 --- /dev/null +++ b/nginx.conf @@ -0,0 +1 @@ +upstream app_server \ No newline at end of file