Project

General

Profile

Actions

Defect #6950

closed

ruby script/about doesn't work for me

Added by Dave Abrahams about 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-11-20
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Just trying to report a bug here, but I get this...

root@bite:/srv/redmine# /usr/local/bin/ruby script/about
./script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010.  Use #requirement
/srv/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:62:in `establish_connection': development database is not configured (ActiveRecord::AdapterNotSpecified)
        from /srv/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:55:in `establish_connection'
        from ./script/../config/../vendor/rails/railties/lib/initializer.rb:438:in `initialize_database'
        from ./script/../config/../vendor/rails/railties/lib/initializer.rb:141:in `process'
        from ./script/../config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
        from ./script/../config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
        from /srv/redmine/config/environment.rb:20
        from /usr/local/stow/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/local/stow/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /srv/redmine/vendor/rails/railties/lib/commands/about.rb:1
        from /usr/local/stow/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/local/stow/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from script/about:4

Actions #1

Updated by Holger Just about 14 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

You always need to specify the correct rails environment (i.e. one that is actually configured). If nothing else is specified, the development environment will be used. Try this instead:

RAILS_ENV=production /usr/local/bin/ruby script/about
Actions #2

Updated by Dave Abrahams about 14 years ago

Maybe you should put that prominently in the bug reporting instructions, then, for those of us who are not Rails mavens. Bug reporting should be accessible to everybody, neh?

Actions

Also available in: Atom PDF