Skip to content

Problem with Postgresql db:migrate when deploy #230

Open
@unavailabl3

Description

deploy:migrating
      01 /usr/local/rvm/bin/rvm default do bundle exec rake db:migrate
      01 rake aborted!
      01 PG::ConnectionBad: FATAL:  password authentication failed for user "customuser"
...
Tasks: TOP => db:migrate
  1. I can normally login to psql under customuser
  2. command on server RAILS_ENV=production rake db:migrate is workling
  3. database.yml :
production:
  <<: *default
  database: app_production
  host: localhost
  username: customuser
  password: mypassword
  1. /etc/postgresql/10/main/pg_hba.conf :
# "local" is for Unix domain socket connections only
local   all             all                                     md5

also tried peer

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions