Ruby version number By the way, when deploying Heroku, you may have seen the following warning message:
WARNING: You have not declared a Ruby version in your Gemfile. To set your Ruby version add this line to your Gemfile: ruby '2.1.5' (This is the message "Please specify the version of Ruby explicitly") Experience shows that it is often smoother not to specify it explicitly at the tutorial stage like this book. You should ignore the warning at this time. This is because keeping the Ruby version up-to-date in the sample application can lead to significant inconvenience15. Also, in the sample application in this document, even if the version used locally and the version in the production environment are different, there will be almost no difference. That said, keep the following points in the corner of your head: That's because it's wise to specify the Ruby version in your Gemfile when running Heroku-based applications at work. This will maximize compatibility between the development environment and the production environment, so it is recommended (eliminating malfunctions and errors due to version differences).
Recommended Posts