Loading services/helper/helper_service/app.py +2 −0 Original line number Original line Diff line number Diff line Loading @@ -7,6 +7,7 @@ from db.db import MongoDatabse import requests import requests from OpenSSL.crypto import PKey, TYPE_RSA, X509Req, dump_certificate_request, FILETYPE_PEM, dump_privatekey from OpenSSL.crypto import PKey, TYPE_RSA, X509Req, dump_certificate_request, FILETYPE_PEM, dump_privatekey from flask import Flask from flask import Flask from asgiref.wsgi import WsgiToAsgi from config import Config from config import Config from controllers.helper_controller import helper_routes from controllers.helper_controller import helper_routes Loading Loading @@ -82,3 +83,4 @@ cert_file.close() app.register_blueprint(helper_routes) app.register_blueprint(helper_routes) app.logger.setLevel(numeric_level) app.logger.setLevel(numeric_level) asgi_app = WsgiToAsgi(app) No newline at end of file services/helper/helper_service/wsgi.py +2 −2 Original line number Original line Diff line number Diff line from app import app from app import asgi_app if __name__ == "__main__": if __name__ == "__main__": app.run() asgi_app.run() services/helper/prepare_helper.sh +2 −2 Original line number Original line Diff line number Diff line #!/bin/bash #!/bin/bash gunicorn --bind 0.0.0.0:8080 \ gunicorn -k uvicorn.workers.UvicornWorker --bind 0.0.0.0:8080 \ --chdir /usr/src/app/helper_service wsgi:app --chdir /usr/src/app/helper_service wsgi:asgi_app No newline at end of file No newline at end of file services/helper/requirements.txt +2 −0 Original line number Original line Diff line number Diff line Loading @@ -7,4 +7,6 @@ pyopenssl == 24.1.0 pyyaml == 6.0.1 pyyaml == 6.0.1 requests == 2.32.2 requests == 2.32.2 gunicorn == 23.0.0 gunicorn == 23.0.0 uvicorn == 0.34.2 asgiref == 3.8.1 packaging == 24.0 packaging == 24.0 Loading
services/helper/helper_service/app.py +2 −0 Original line number Original line Diff line number Diff line Loading @@ -7,6 +7,7 @@ from db.db import MongoDatabse import requests import requests from OpenSSL.crypto import PKey, TYPE_RSA, X509Req, dump_certificate_request, FILETYPE_PEM, dump_privatekey from OpenSSL.crypto import PKey, TYPE_RSA, X509Req, dump_certificate_request, FILETYPE_PEM, dump_privatekey from flask import Flask from flask import Flask from asgiref.wsgi import WsgiToAsgi from config import Config from config import Config from controllers.helper_controller import helper_routes from controllers.helper_controller import helper_routes Loading Loading @@ -82,3 +83,4 @@ cert_file.close() app.register_blueprint(helper_routes) app.register_blueprint(helper_routes) app.logger.setLevel(numeric_level) app.logger.setLevel(numeric_level) asgi_app = WsgiToAsgi(app) No newline at end of file
services/helper/helper_service/wsgi.py +2 −2 Original line number Original line Diff line number Diff line from app import app from app import asgi_app if __name__ == "__main__": if __name__ == "__main__": app.run() asgi_app.run()
services/helper/prepare_helper.sh +2 −2 Original line number Original line Diff line number Diff line #!/bin/bash #!/bin/bash gunicorn --bind 0.0.0.0:8080 \ gunicorn -k uvicorn.workers.UvicornWorker --bind 0.0.0.0:8080 \ --chdir /usr/src/app/helper_service wsgi:app --chdir /usr/src/app/helper_service wsgi:asgi_app No newline at end of file No newline at end of file
services/helper/requirements.txt +2 −0 Original line number Original line Diff line number Diff line Loading @@ -7,4 +7,6 @@ pyopenssl == 24.1.0 pyyaml == 6.0.1 pyyaml == 6.0.1 requests == 2.32.2 requests == 2.32.2 gunicorn == 23.0.0 gunicorn == 23.0.0 uvicorn == 0.34.2 asgiref == 3.8.1 packaging == 24.0 packaging == 24.0