Update Render.com config

Default database instance is _not_ free... rude.
This commit is contained in:
Christopher C. Wells 2022-06-02 07:05:50 -07:00
parent bf031fcc85
commit aba239e6da
2 changed files with 5 additions and 11 deletions

View File

@ -11,9 +11,4 @@ if RENDER_EXTERNAL_HOSTNAME:
# Database
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
DATABASES = {
"default": dj_database_url.config(
default="postgresql://postgres:postgres@localhost:5432/babybuddy",
conn_max_age=600,
)
}
DATABASES = {"default": dj_database_url.config(conn_max_age=600)}

View File

@ -1,18 +1,17 @@
databases:
- name: babybuddy
databaseName: babybuddy
user: babybuddy
- name: db
plan: free
services:
- type: web
name: babybuddy
name: app
env: python
buildCommand: "./.render.com/build.sh"
startCommand: "gunicorn babybuddy.wsgi:application"
envVars:
- key: DATABASE_URL
fromDatabase:
name: babybuddy
name: db
property: connectionString
- key: DJANGO_SETTINGS_MODULE
value: babybuddy.settings.render