Reputation: 5073
Using the cedar-14 stack on Heroku. Just noticed that I can no longer run heroku run console
because I get the error:
bash: console: command not found
I can still get to the console by calling:
heroku run bundle exec rails console
But I'm wondering what might have caused this change. I only noticed the issue after several days of commits so I can pinpoint the issue.
Upvotes: 5
Views: 7476
Reputation: 5110
I run into the same problem but I have resolved it by removing heroku/metrics
build pack.
I have followed the configuration given for Ruby Language Metrics
https://devcenter.heroku.com/articles/language-runtime-metrics-ruby and then tried to run the command heroku run console
and it was triggering command not found error
then I have reverted my changes and it started working.
Hope this will be helpful!
Upvotes: 0
Reputation: 7271
Try
heroku run /app/bin/rails console
I happened to see this problem for a preview apps. For regular apps heroku console
works.
Upvotes: 3
Reputation: 1023
You need to use
heroku run rails console
The Basics for Heroku are explained under Heroku Devcenter.
Upvotes: 5