diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-20 18:12:57 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-20 18:12:57 +0100 |
commit | 966f40d591d6fc95068fc22c5b283b9ab54c3d8e (patch) | |
tree | 91d949d700e58bf89917f5e0cbb34ea97e54bea2 /manager.py | |
parent | added files for docker (diff) | |
download | newspipe-966f40d591d6fc95068fc22c5b283b9ab54c3d8e.tar.gz newspipe-966f40d591d6fc95068fc22c5b283b9ab54c3d8e.tar.bz2 newspipe-966f40d591d6fc95068fc22c5b283b9ab54c3d8e.zip |
Added Dockerfile, images: python3.8-alpine and postgres.
Diffstat (limited to 'manager.py')
-rwxr-xr-x | manager.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -39,8 +39,11 @@ def db_create(): "pwdhash": generate_password_hash(os.environ.get("ADMIN_PASSWORD", "password")), } with application.app_context(): - db.create_all() - UserController(ignore_context=True).create(**admin) + try: + db.create_all() + UserController(ignore_context=True).create(**admin) + except Exception as e: + print(e) @manager.command |