mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 04:51:11 +00:00
Renames settings variables
This commit is contained in:
parent
13a8bb45af
commit
7bd49f1da5
3 changed files with 5 additions and 5 deletions
|
@ -13,7 +13,7 @@ OL_URL=https://openlibrary.org
|
||||||
|
|
||||||
## Database backend to use.
|
## Database backend to use.
|
||||||
## Default is postgres, sqlite is for dev quickstart only (NOT production!!!)
|
## Default is postgres, sqlite is for dev quickstart only (NOT production!!!)
|
||||||
FEDIREADS_DATABASE_BACKEND=postgres
|
BOOKWYRM_DATABASE_BACKEND=postgres
|
||||||
|
|
||||||
MEDIA_ROOT=images/
|
MEDIA_ROOT=images/
|
||||||
|
|
||||||
|
|
|
@ -85,9 +85,9 @@ WSGI_APPLICATION = 'celerywyrm.wsgi.application'
|
||||||
# Database
|
# Database
|
||||||
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
|
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
|
||||||
|
|
||||||
FEDIREADS_DATABASE_BACKEND = env('FEDIREADS_DATABASE_BACKEND', 'postgres')
|
BOOKWYRM_DATABASE_BACKEND = env('BOOKWYRM_DATABASE_BACKEND', 'postgres')
|
||||||
|
|
||||||
FEDIREADS_DBS = {
|
BOOKWYRM_DBS = {
|
||||||
'postgres': {
|
'postgres': {
|
||||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||||
'NAME': env('POSTGRES_DB', 'bookwyrm'),
|
'NAME': env('POSTGRES_DB', 'bookwyrm'),
|
||||||
|
@ -103,7 +103,7 @@ FEDIREADS_DBS = {
|
||||||
}
|
}
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': FEDIREADS_DBS[FEDIREADS_DATABASE_BACKEND]
|
'default': BOOKWYRM_DBS[BOOKWYRM_DATABASE_BACKEND]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ fi
|
||||||
|
|
||||||
source .env
|
source .env
|
||||||
|
|
||||||
if [ $FEDIREADS_DATABASE_BACKEND = 'sqlite' ]; then
|
if [ $BOOKWYRM_DATABASE_BACKEND = 'sqlite' ]; then
|
||||||
if [ -f fedireads.db ]; then
|
if [ -f fedireads.db ]; then
|
||||||
rm fedireads.db
|
rm fedireads.db
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue