[Note] Update to production environment [heroku]


I'm nervous every time I update to the production environment. This time I updated to the first production environment on heroku. As it was my first time, I got an error and was impatient, but the cause was very simple. ..

This time, I will post it as an article so that other people can solve this error immediately so that I will not forget the solution.

Error screen


At the moment, I am saying that it is not an environment that can be pushed.


Deployment on heroku is linked with git, so if there are any changes, execute the following command so that the changes can be reflected.

$ git add
$ git commit -m "Update application"
$ git push heroku master

#Execute the following command when you change the migration etc.
$ heroku run rails db:migrate

At the end

As mentioned above, it was a very simple story. Every time I have a strange feeling of tension in the production environment.

The procedure is very easy, but if anyone is stumbling, please refer to it.

Recommended Posts

[Note] Update to production environment [heroku]
Note how to rollback Mysql deployed on Heroku
Production environment and credentials.yml.enc
Can't upload to heroku
How to deploy on heroku
Introduction to Metabase ~ Environment Construction ~
Update Ruby in Unicorn environment
How to update with activerecord-import
AWS Cloud9 environment construction Update Ruby to the latest stable version