From e5c9b08d0b18f5ea17211c0b98481dbb81e49c61 Mon Sep 17 00:00:00 2001 From: Bobby Date: Wed, 20 Jul 2022 19:25:42 +0530 Subject: Migrating to SQLite3 --- fly.toml | 5 +++++ thatcomputerscientist/settings.py | 13 ++----------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/fly.toml b/fly.toml index 52ab8470..237971b1 100644 --- a/fly.toml +++ b/fly.toml @@ -41,3 +41,8 @@ processes = [] [[statics]] guest_path = "/app/public" url_prefix = "/static/" + +[mounts] + source="data" + destination="/data" + diff --git a/thatcomputerscientist/settings.py b/thatcomputerscientist/settings.py index 183cdde9..38438b3f 100644 --- a/thatcomputerscientist/settings.py +++ b/thatcomputerscientist/settings.py @@ -84,17 +84,8 @@ WSGI_APPLICATION = 'thatcomputerscientist.wsgi.application' DATABASES = { 'default': { - 'ENGINE': 'django_psdb_engine', - 'NAME': os.getenv('DB_DATABASE'), - 'USER': os.getenv('DB_USER'), - 'PASSWORD': os.getenv('DB_PASSWORD'), - 'HOST': os.getenv('DB_HOST'), - 'PORT': os.getenv('DB_PORT'), - 'OPTIONS': { - 'ssl': { - 'ca': os.getenv('MYSQL_ATTR_SSL_CA'), - } - } + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(BASE_DIR, 'db.sqlite3') if os.getenv('ENVIRONMENT') == 'development' else ('/data/db.sqlite3'), } } -- cgit v1.2.3