Project

General

Profile

Actions

Defect #4090

closed

ruby script/about does not work for production environment

Added by Anonymous about 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-10-22
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

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)

Actions #1

Updated by Jean-Philippe Lang about 15 years ago

  • 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
Actions #2

Updated by Anonymous about 15 years ago

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

Actions #3

Updated by Eric Davis almost 15 years ago

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/

Actions #4

Updated by Ki Won Kim almost 15 years ago

If your OS was Windows then

SET RAILS_ENV=production

and ruby script/about in Redmine install folder.

Actions

Also available in: Atom PDF