migrate to using db connection string from env

This commit is contained in:
Viktor Barzin 2025-06-22 21:16:55 +00:00
parent 84a55eefde
commit efe3248c07
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
9 changed files with 375 additions and 177 deletions

View file

@ -85,7 +85,10 @@ path_separator = os
# other means of configuring database URLs may be customized within the env.py
# file.
; sqlalchemy.url = driver://user:pass@localhost/dbname
sqlalchemy.url = sqlite:///data/wrongmove.db
; sqlalchemy.url = sqlite:///data/wrongmove.db
; sqlalchemy.url = mysql://wrongmove:wrongmove@localhost:3306/wrongmove
sqlalchemy.url = %(DB_CONNECTION_STRING)s
[post_write_hooks]