mirror of https://github.com/snachodog/mybuddy.git
Update Render.com config
Default database instance is _not_ free... rude.
This commit is contained in:
parent
bf031fcc85
commit
aba239e6da
|
@ -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)}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue