[RAILS] Second and subsequent deployments

As a prerequisite, it is assumed that your application is already deployed.

First, if the app file has changed, let's commit to merge on GitHub!

Reflect changes in Heroku

Type the following command in the terminal

Terminal


% git add .   
% git commit -m "Put an explanation here so that you can understand the changed contents, even in Japanese"       

Repository push

Terminal


% git push heroku master 

Perform migration

Terminal


% heroku run rake db:migrate  

Thank you for your hard work, if there are no errors, you're done!

What to do if an error occurs, execute the following command to get a hint

Terminal


% heroku logs --tail --app <<Application name>>

Thank you for watching till the end! I hope it helps someone

Recommended Posts

Second and subsequent deployments
Deploy to Heroku (for second and subsequent edits)