Add Docker support with Gunicorn, SQLite volume persistence, and optional PostgreSQL
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -71,12 +71,17 @@ if DATABASE_URL:
|
||||
}
|
||||
}
|
||||
else:
|
||||
DATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'db.sqlite3'}}
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': config('SQLITE_PATH', default=str(BASE_DIR / 'db.sqlite3')),
|
||||
}
|
||||
}
|
||||
else:
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': BASE_DIR / 'db.sqlite3',
|
||||
'NAME': config('SQLITE_PATH', default=str(BASE_DIR / 'db.sqlite3')),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user