You must use the console with the same environment you have under production:

script/console production

HTH, Rodrigo.

Em 05-05-2011 14:55, Jarrod Roberson escreveu:
Is there any complete information on how to use the console script?

This is what I get why I try to do the suggested action

[Thu May 05 13:53:51] [root]@[dev] /var/www/gitorious/script
# ./console
Loading development environment (Rails 2.3.5)
/var/www/gitorious/config/environment.rb:15:RuntimeError: Your config/gitorious.yml does not have an entry for your curr ent Rails environment. Please consult config/gitorious.sample.yml for instructions. /var/www/gitorious/vendor/rails/railties/lib/rails/backtrace_cleaner.rb:2:NameError: uninitialized constant ActiveSuppor
t::BacktraceCleaner
/var/www/gitorious/vendor/rails/railties/lib/console_with_helpers.rb:5:NameError: uninitialized constant ApplicationCont
roller
>> u = User.find_by_login "jarrodroberson"
NameError: uninitialized constant User
        from (irb):1

--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to