meteor/postgres-packages

Running examples using remote DB

Opened this issue · 2 comments

Hi,
Great work!
I would like to run the examples using a DB on AWS RDS. The endpoint is:
db-postgresql-dev.cxxxxxxxxxxx.us-east-1.rds.amazonaws.com:5432
What do I need to change to get it running?

Slava commented

I think you are looking for POSTGRESQL_URL env variable:

PG.defaultConnectionUrl = process.env.POSTGRESQL_URL || 'postgres://127.0.0.1/postgres';

Thanks. Migration worked a treat.