Today, I created a copy of a working app, which runs perfectly on Heroku, and tried to deploy it on Heroku as a starting point for a new project.
I added the new fol
I found this, much easier solution:
Just add ENV['RUBYOPT'] = "-Ku" to your environment variables on Heroku. You can do this with figaro gem:
gem "figaro" to your Gemfilebundle installInsert this code in config/application.yml:
production:
RUBYOPT: "-Ku"
Run rake figaro:heroku
Also, you can try with magic_encoding gem, but I dislike this approach.