ruby on rails - PG::ConnectionBad: FATAL: database "db_name" does not exist on EC2 amazon -


i using capistrano rails application deployment. i'm facing pg::connectionbad: fatal: database "db_name" not exist error.

kindly guide me.

this error indicates there no database exist name "db_name".

you need create database on ec2 server , use name , password of database config/database.yml file in production block.

alternatively, can run

bundle exec rake db:create rails_env=production 

on ec2 server, create database specified configuration of database.yml file. once database gets created no longer error.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -