I am trying to connect a Rails application to an EC2 instance containing a PG database. I have already verified with Navicat that I can connect to the database based on EC2 details. The problem is that when running locally, the Rails application cannot be viewed; it throws an error "Database configuration does not indicate adapter." A similar problem occurs when you try to migrate the database. I have not even tried to push this to my Rails EC2, as it does not work locally.
My database.yml file looks like this:
production:
adapter: postgresql
encoding: unicode
database: postgres
host: ec2-54-197-115-117.compute-1.amazonaws.com
pool: 10
port: 5432 (have both included and removed this line)
username: a database username for security
password: the password associated with that user
My gem files include pg gem.
, Navicat, , , , ; , ? , EC2. , postgres unix.
!
Edit:
!