Skip to content

Commit

Permalink
made mariadb config into optional with defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Jan 27, 2025
1 parent 04bd111 commit b57702b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aim/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ class Services:
logger=structlog.get_logger(),
mysql_database=sa.engine.URL.create(
drivername="mysql+mysqldb",
username=os.environ["MARIADB_USER"],
password=os.environ["MARIADB_PASSWORD"],
host=os.environ["DATABASE_HOST"],
database=os.environ["MARIADB_DATABASE"],
username=os.getenv("MARIADB_USER") or "user",
password=os.getenv("MARIADB_PASSWORD") or "password",
host=os.getenv("DATABASE_HOST") or "database",
database=os.getenv("MARIADB_DATABASE") or "database",
),
test_database="sqlite:///:memory:",
ci_on=os.getenv("CI"),
Expand Down

0 comments on commit b57702b

Please sign in to comment.