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 # Database
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases # https://docs.djangoproject.com/en/4.0/ref/settings/#databases
DATABASES = { DATABASES = {"default": dj_database_url.config(conn_max_age=600)}
"default": dj_database_url.config(
default="postgresql://postgres:postgres@localhost:5432/babybuddy",
conn_max_age=600,
)
}

View File

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