precompile-assets

rake aborted! JSON::GeneratorError: source sequence is illegal/malformed utf-8 after rake assets:precompile

不打扰是莪最后的温柔 提交于 2019-12-31 01:25:27
问题 I finished building a website and want to deploy it to Digital Ocean VPN. Installed Capistrano and Passenger. During initial deployment I was receiving an error that apparently had to do with precompiling assets, so I tried "rake assets:precompile --trace RAILS_ENV=production" in my rails production environment locally and the process is aborted with this message: "JSON::GeneratorError: source sequence is illegal/malformed utf-8" Can anyone help me with this, I can't seem to be able to fix

Ruby on Rails: heroku run rake assets:precompile

房东的猫 提交于 2019-12-30 01:08:08
问题 Please help me understand what heroku run rake assets:precompile exactly does. Ever since I began working on ruby on rails, I would always run these three commands before I push to github and heroku: bundle exec rake assets:precompile RAILS_ENV=production bundle exec rake assets:precompile After I push to heroku, I would run: heroku run rake assets:precompile However, when I tried to run it after my last push to heroku, I got a bunch of the same errors on different files. For example: Warning