Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku rails console does not start any more

Tags:

I have an issue with running the rails console at heroku (cedar-stack). Each of the following commands heroku run console, heroku run rails console, heroku run bundle exec rails console results in the following error-message:

Running bundle exec rails console attached to terminal... up, run.8155

Abort testing: Your Rails environment is running in production mode!

This error-message is a little bit confused. What kind of test tries heroku to start? I just want to fire up the console, which had worked fine 4 weeks ago.

like image 449
Micha Avatar asked May 09 '13 23:05

Micha


Video Answer


2 Answers

For Cedar Stack and later:

heroku run rails console --app <app name> 

Previous stacks could use this command:

heroku run console --app <app name> 
like image 99
Chris Barretto Avatar answered Oct 06 '22 09:10

Chris Barretto


If you have multiple environments (staging / production / etc) you need this command:

heroku run -a app-name console 

If you only have a single environment and never setup staging or other environments you can just run:

heroku run console 

https://github.com/nemrow/rails_app_cheatsheet/blob/master/heroku.rdoc

like image 24
Jordan Rumpelstiltskin Nemrow Avatar answered Oct 06 '22 09:10

Jordan Rumpelstiltskin Nemrow