--I'm writing an application in Rails --Heroku CLI has been installed
--Since I made changes locally to the created application, I want to reflect the changes in the production environment with heroku ――I always forget how to push on heroku, so I want to post it instead of a memorandum
terminal
% heroku login --interactive
↓
heroku: Enter your login credentials
Email [[email protected]]: [email protected]
Password: ********
Logged in as [email protected]
It doesn't matter which directory you run it in, but I think it's safe to run it in the directory of the app you want to update.
terminal
% git push heroku master
Run on the directory of the app you want to update
terminal
% heroku run rails db:migrate
Run on the directory of the app you want to update
that's all.
Recommended Posts