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
Post a Comment