I am trying to run Heroku console, but in the console, I get the message "Running console attached to terminal" but the console doesn't start.
In the Heroku logs, I get the error:
Error: no child processes attached.
Any help?
I just had a thread with Heroku support about my similar issue, here was their response, which worked for me.
So this is a bamboo app. You can either do
$ heroku console
which will tap into a running web dyno, or you can run a new console as a one-off process with:
$ heroku run bundle exec rails console
On cedar apps you'd also be able to do
$ heroku run console
which also starts a one-off process, because the console process type would be implied by the rails buildpack or declared in your Procfile. It amounts to the same as the previous line.
Try
$ telnet rendezvous.heroku.com 5000
to test the net enabled access to that port. They mention that filtered-port issue on their guide
Do this and then try In Procfile
web: bundle exec unicorn_rails -p $PORT -c config/unicorn.rb
In unicorn.rb
worker_processes 2 preload_app true timeout 30
@resque_pid = nil
before_fork do |server, worker| @resque_pid ||= spawn("bundle exec rake environment resque:work QUEUE=*") end
after_fork do |server, worker| ActiveRecord::Base.establish_connection end
rails console2012-02-24T07:54:39+00:00 heroku[run.1]: State changed from starting to up 2012-02-24T07:54:39+00:00 app[run.1]: Error: undefined method `exitstatus' for nil:NilClass 2012-02-24T07:54:40+00:00 heroku[run.1]: Process exited with status 0 2012-02-24T07:54:40+00:00 heroku[run.1]: State changed from up to complete - Paul Pettengill