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.
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
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.