From 4a073acdfd10911d1b76159b115bf55f0f342e2b Mon Sep 17 00:00:00 2001 From: Emily Ho <114359555+Emilyho11@users.noreply.github.com> Date: Sun, 31 Mar 2024 19:55:20 -0400 Subject: [PATCH] Fixing path for running servers in tests.yaml --- .github/workflows/tests.yaml | 2 +- backend/auth_service/database_Authentications.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index f341725..177a702 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -31,7 +31,7 @@ jobs: - name: Test backend run: | echo "Starting Servers" - node backend\api_gateway\src\index.js + node backend/api_gateway/src/index.js sleep 5 echo "Testing unique prescriber codes and pdf generation" diff --git a/backend/auth_service/database_Authentications.py b/backend/auth_service/database_Authentications.py index 9199c4f..138b682 100644 --- a/backend/auth_service/database_Authentications.py +++ b/backend/auth_service/database_Authentications.py @@ -335,5 +335,6 @@ def register_service(service_name, service_url): print("Starting Authentication Service on port", app.config["PORT"]) register_service("authentication-service", f"http://127.0.0.1:{app.config['PORT']}") + if __name__ == "__main__": app.run(debug=True, port=PORT)