Defect #4090
closed
ruby script/about does not work for production environment
Added by Anonymous about 15 years ago.
Updated almost 15 years ago.
Description
log:
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:585:in `real_connect': Access denied for user 'root'@'localhost' (using password: NO) (Mysql::Error)
- Status changed from New to Closed
- Resolution set to Invalid
It does work. Check your database configuration.
$ RAILS_ENV=production ruby script/about
About your application's environment
Ruby version 1.8.6 (i486-linux)
RubyGems version 1.3.5
Rack version 1.0
Rails version 2.3.4
Active Record version 2.3.4
Active Resource version 2.3.4
Action Mailer version 2.3.4
Active Support version 2.3.4
Application root /var/rails/www
Environment production
Database adapter mysql
Database schema version 20090704172358
I think that script/about should output something like "Error:Could not connect to database (Check your database setup)" instead of Error from the db
Krzysztof Podejma wrote:
I think that script/about should output something like "Error:Could not connect to database (Check your database setup)" instead of Error from the db
That script is from Ruby on Rails, you can report the feature request to them to change the message. http://rubyonrails.org/
If your OS was Windows then
SET RAILS_ENV=production
and ruby script/about in Redmine install folder.
Also available in: Atom
PDF