Comments (5)
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.
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.
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.
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.
@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)
- Conditional preprocess assets? HOT 2
- Not compiling webpacker assets on deployment HOT 7
- Rollback a webpacker project without sprockets fails
- deploy assets precompile always failed though i already set rails_env to production HOT 13
- Application is running in Production instead of Staging HOT 4
- LoadError: cannot load such file -- capistrano/rails HOT 5
- Update Dependency for capistrano-bundler
- Task deploy:migrate exists with SystemStackError (version 1.6.0) HOT 7
- Timeout during `deploy:compile_assets` HOT 2
- How about conditionally compiling assets?
- getting folloiwng issue in jenkins. capistrano deploy is stuck at compiling forever
- Asset cleanup HOT 3
- Rails 7 + Capistrano HOT 1
- Use `bin/rails` rather than `rake` for deployment tasks HOT 2
- Capistrano fail to deploy rails app due to incompatibility with OpenSSL 3.0 HOT 1
- Support for propshaft HOT 4
- Feature request: Be able to change assets:precompile CPU priority HOT 1
- The deploy doesn't create node_modules and raises Sprockets::FileNotFound (after upgrading to rails 7) HOT 3
- Deprecated method 'exists?' for File:Class in ruby 3.2.0 HOT 1
- `cap doctor` erroneously reports that `:keep_assets` is an unrecognized setting HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rails.