Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,9 @@ test:
production:
<<: *default
url: <%= ENV["DATABASE_URL"] %>
# When DATABASE_URL points at a Supabase connection pooler (Supavisor),
# these keep migrations and queries working across pooled connections.
# Harmless on the session pooler (port 5432); required on the transaction
# pooler (port 6543), where db:migrate otherwise hangs on an advisory lock.
prepared_statements: false
advisory_locks: false
1 change: 1 addition & 0 deletions render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ services:
name: my-app-name # the name of this service, you should change this
runtime: docker # use Dockerfile for deployment
plan: free # make sure to set this to free or you'll get billed $$$
region: ohio # set this to the SAME region as your database, near your users (Supabase "East US (Ohio)" = ohio) to avoid slow cross-region queries
dockerfilePath: ./Dockerfile
envVars: # this section sets some ENV variables needed by Render for deployment
- key: SECRET_KEY_BASE
Expand Down