generated from mlibrary/python-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: mysql_db string and python app env
* adds mysql client and vim-tiny to docker file * adds /app to PYTHONPATH in production image * fixes the mysql_database url to to use the MARIADB_DATABASE env var
- Loading branch information
Showing
3 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import sys | ||
from aim.digifeeds.database.models import load_statuses | ||
from aim.digifeeds.database.main import SessionLocal | ||
import sys | ||
|
||
|
||
def main(): | ||
with SessionLocal() as db_session: | ||
load_statuses(session=db_session) | ||
load_statuses(session=db_session) | ||
|
||
|
||
if __name__=='__main__': | ||
sys.exit(main()) | ||
if __name__ == "__main__": | ||
sys.exit(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters