From a58e04db5f3ba7f12ee885e5cfc1bc808d01de6b Mon Sep 17 00:00:00 2001 From: ronnyabraham Date: Sun, 8 May 2022 17:01:20 +0300 Subject: [PATCH] fixed an issue with deploy.bootstrap, cuz docker was creating a fully functioning database using admin as the owner, and so it wasn't adding ronny. Instead of making yet another script I decided to just drop the datbase, using the database.drop_db which only gets rid of the datbase and not any users, and then initialize it from there --- modules/deploy.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/deploy.py b/modules/deploy.py index 8da8c2a..85caa73 100644 --- a/modules/deploy.py +++ b/modules/deploy.py @@ -201,8 +201,13 @@ def bootstrap(): db.generate() print_console("ending db.generate") - # print_console("in db.init") - # db.init() + # we are ignoring the user, b/c ronny + # was not yet set to be the user + print_console("in db.drop_db") + db.drop_db() + + print_console("in db.init") + db.init() @task