I need to point my Heroku application to my AWS RDS database. My RDS database is up and running and has a security group with 0.0.0.0/0 access.
Currently, I've removed my Heroku postgreSQL database and I am attempting to point my Heroku application to my RDS database. For some reason my application is crashing. The step that I believe I am on is setting my DATABASE_URL on the Heroku side.
Let's say that my database credentials are:
db instance: mydb
dbname: mydb
user: wcronyn
pass: password
I've tried:
heroku config:set DATABASE_URL=postgres://wcronyn:[email protected]:5432/mydb
and I've attempted to set the permissions by downloading the .pem file into my config folder and then referencing it:
DATABASE_URL=postgres://wcronyn:[email protected]:5432/mydb?sslca=config/amazon-rds-ca-cert.pem&sslmode=require&encrypt=true
I have tried these two database urls but my application keeps crashing.
Can someone outline the steps that I need to take to successfully host my RDS database and point my application to it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…