I had the same issue.
"heroku console" has recently been removed from the API.
Heroku support told me to do the following:
1) Run the correct command locally (without heroku) in production mode.
Since I am on rails 2.3 it is
RAILS_ENV=production script/console
I imagine if you are 3.0, it is RAILS_ENV=production rails console
2) Modify configuration until this works. In my case I needed to modify
script/console
-require File.dirname(__FILE__) + '/../config/boot'
+require File.expand_path('../../config/boot', __FILE__)
and add readline to Gemfile
3) Push to heroku
4) Run heroku run script/console -a myapp
On Mon, Dec 31, 2012 at 2:32 AM, Prizefighter <[email protected]
> wrote:
> Hi, I suddenly can't open a console on my heroku hosted rails apps. I've
> tried
>
> heroku console
>
> and
>
> heroku run bundle exec rails console
>
> as well as
>
> heroku run console
>
>
> All of these commands have worked at various times in the past. I've
> copied out error messages below. Can anyone help?
>
>
>
>
>
>
>
> *heroku run bundle exec rails console*
>
>
>
> Running `bundle exec rails console` attached to terminal... failed
> ! Heroku client internal error.
> ! Search for help at: https://help.heroku.com
> ! Or report a bug at: https://github.com/heroku/heroku/issues/new
>
> Error: No such file or directory - git --version
> (Errno::ENOENT)
> Backtrace:
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/helpers.rb:103:in ``'
>
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/helpers.rb:103:in
> `has_git?'
>
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/helpers.rb:108:in
> `git'
>
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/command/base.rb:206:in
> `git_remotes'
>
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/command/base.rb:179:in
> `extract_app_in_dir'
>
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/command/base.rb:31:in
> `app'
>
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/command/run.rb:108:in
> `block in run_attached'
>
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/helpers.rb:236:in
> `action'
>
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/command/run.rb:107:in
> `run_attached'
>
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/command/run.rb:21:in
> `index'
>
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/command.rb:207:in
> `run'
>
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/cli.rb:28:in `start'
> /usr/bin/heroku:24:in `<main>'
>
> Command: heroku run bundle exec rails console
> Version: heroku-toolbelt/2.33.5 (x86_64-darwin10.8.0) ruby/1.9.3
>
>
>
> *HEROKU CONSOLE
> *
>
> ! Heroku client internal error.
> ! Search for help at: https://help.heroku.com
> ! Or report a bug at: https://github.com/heroku/heroku/issues/new
>
> Error: uninitialized constant Heroku::Command::Run::RestClient
> (NameError)
> Backtrace:
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/command/run.rb:88:in
> `rescue in console'
>
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/command/run.rb:82:in
> `console'
>
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/command.rb:207:in
> `run'
>
> /Users/michaeljohnmitchell/.heroku/client/lib/heroku/cli.rb:28:in `start'
> /usr/bin/heroku:24:in `<main>'
>
> Command: heroku console
> Version: heroku-toolbelt/2.33.5 (x86_64-darwin10.8.0) ruby/1.9.3
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en_US?hl=en
>
--
You received this message because you are subscribed to the Google
Groups "Heroku" group.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en