Giter Site home page Giter Site logo

Comments (5)

eduavencama avatar eduavencama commented on May 20, 2024 34

My friend, I was have the same problem. My solution was added the credentials for each environment and enable the host in th value localhost..

like this:

development:
  <<: *default
  database: SM_development
  username: user
  password: xxxx

host: localhost

test:
  <<: *default
  database: SM_test
  username: user
  password: xxxxxx

production:
  <<: *default
  database: SM_production
  username: user
  password: xxxxxx

from rails.

ghn avatar ghn commented on May 20, 2024 9

this is a rails_env issue.
If you run the same command starting with "RAILS_ENV=production" it'll work.

RAILS_ENV=production bundle exec rake db:migrate

from rails.

Kriechi avatar Kriechi commented on May 20, 2024

Looks to me like a postgres related error?
PG::ConnectionBad: fe_sendauth: no password supplied

Is your database.yml valid and filled with proper values?
Are you able to migrate manually via SSH on the server?

from rails.

Kriechi avatar Kriechi commented on May 20, 2024

It is running with RAILS_ENV=production - or am I reading this wrong:

DEBUG[c03035dd] Command: cd /home/deploy/my_app/releases/20140723173643 && ( RAILS_ENV=production ~/.rvm/bin/rvm default do bundle exec rake db:migrate )

from rails.

kirs avatar kirs commented on May 20, 2024

@Kriechi thanks for explanation.

I guess that PG::ConnectionBad from the Rails stack has no connection with the capistrano-rails code.

from rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.