Skip to content

Commit

Permalink
add more logging for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Bisom committed Apr 16, 2024
1 parent 59c2b77 commit 55017b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions backend/src/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class database_connection:
connection: pymysql.Connection

def __init__(self, app):
print(app.config["MYSQL_DATABASE_HOST"])
print(database=app.config["MYSQL_DATABASE_DB"],)
self.connection = pymysql.connect(
host=app.config["MYSQL_DATABASE_HOST"],
user=app.config["MYSQL_DATABASE_USER"],
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-dev-ga.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ services:
ports:
- "3306:3306"
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "db" ] # We'll wait until the DB is ready to accept connections to start up dependent services
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ] # We'll wait until the DB is ready to accept connections to start up dependent services
timeout: 20s
retries: 10
2 changes: 1 addition & 1 deletion docker-compose-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ services:
ports:
- "3306:3306"
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "db" ] # We'll wait until the DB is ready to accept connections to start up dependent services
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ] # We'll wait until the DB is ready to accept connections to start up dependent services
timeout: 20s
retries: 10

0 comments on commit 55017b7

Please sign in to comment.