[Ruby on rails] When executing the heroku command, bash: heroku: command not found is displayed. [Rails tutorial]

error contents

Execute the following command to execute migration on heroku.

heroku run rails db:migrate

Then

bash: heroku: command not found

I can't use the heroku command ...

Solution

After investigating, it is said that it will be fixed if you reinstall heroku.

Reinstall with the following command.

source <(curl -sL https://cdn.learnenough.com/heroku_install)

Check the version with the heroku command.

heroku -v
heroku/7.39.3 linux-x64 node-v12.16.2

The command has passed!

Recommended Posts

[Ruby on rails] When executing the heroku command, bash: heroku: command not found is displayed. [Rails tutorial]
[Cloud9] Yay! You ’re on Rails! Is not displayed in the rails tutorial
When [command not found: composer] is displayed when [composer install] is displayed in Laravel
How to solve the problem that the website image is not displayed after deploying to heroku on Rails 5
"" Application.js "is not present in the asset pipeline" error in Ruby on Rails
Cloud IDE: Heroku couldn't be installed in the Ruby on Rails tutorial
When the Ruby on Rails terminal rolls back
When the project is not displayed in eclipse
[Ruby on Rails Tutorial] Error in the test in Chapter 3
Ruby on Rails Tutorial Troublesome notes when running on Windows
[Rails] fields_for is not displayed
[Ruby on Rails] When parameter id acquisition does not work
[Rails] When the layout change of devise is not reflected
[Ruby on Rails] Cookie is used and displayed only once at the first access (using jquery.cookie.js)
[Ruby on Rails] What is Bcrypt?
When using Slim in Ruby on Rails, "undefined local variable or method` f'for "is displayed in form_with
Things to remember and concepts in the Ruby on Rails tutorial
What to do if Operation not permitted is displayed when you execute a command in the terminal
[Rails] About the error that the image is not displayed in the production environment
[Error] Regarding rbenv: ruby 2.5.1 is not installed ot ~ when executing automatic deployment
Ruby on Rails When you don't know the cause of rollback when saving.
[Ruby on Rails] Search function (not selected)
[Rails] Annotate is not executed when migrating
[Ruby on Rails] model, controller terminal command
Ruby on Rails model creation / deletion command
part of the syntax of ruby ​​on rails
Deploy to Heroku [Ruby on Rails] Beginner
How the website is displayed on the screen
Ruby on Rails controller create / delete command
Ruby on Rails application new creation command
When UITextView is not displayed (Swift, Xcode)
[Rails] What to do if you get an error saying "Could not find a JavaScript runtime." When executing the rails s command on Catalina
[Ruby On Rails] When a model unit test is performed with RSpec using FactoryBot, an error occurs because the foreign key is not entered.
[Rails] What to do when the Refile image is not displayed when writing the processing at the time of Routing Error
[Ruby on Rails] Solving the addiction when setting crontab using whenever in EC2
[Ruby on Rails] Rails tutorial Chapter 14 Summary of how to implement the status feed
[Heroku] How to solve when an error is displayed on git push heroku master
[Ruby On Rails] Error in test using RSpec MySQL client is not connected
[Twitter API] Countermeasures when "It is not safe" appears on the https site
When I run the source command in the Ubuntu Makefile, it says "source: command not found"
[Ruby on Rails] Until the introduction of RSpec
The devise error message is not displayed properly.
Publish the app made with ruby on rails
A note when the heroku command becomes unavailable
[Ruby on rails] The rails db: migrate: reset command displays FATAL: Listen error: unable to monitor directories for changes. [Rails tutorial]
GoogleMap is not displayed until the browser is reloaded
Command that the registered information was not found
Determine the current page with Ruby on Rails
[Ruby] When executing rb file when Rails / Sinatra is not used, i18n gets angry with ʻen is not a valid locale (I18n :: InvalidLocale)'
Remedy for command not found in rails s
[Ruby on Rails] Implementation of validation that works only when the conditions are met
[Ruby on Rails] If there are duplicate records when registering data, do not register
[Ruby on Rails] I get a warning when running RSpec because gem'chromedriver-helper' is deprecated.
What to do when Address already in use is displayed after executing rails s
Library not loaded when trying to upgrade the version of ruby and rails s
[Android Studio] About the matter that the design view is not displayed when using TextClock
File path is not recognized when executing an external command from a Java application
[Ruby on rails + Mysql] Data migration procedure memo when switching from heroku to AWS
Docker the development environment of Ruby on Rails project
[Ruby on Rails] How to change the column name
[Ruby On Rails] How to reset DB in Heroku