Nokogiri adds characters during parsing on Heroku

血红的双手。 提交于 2019-12-06 16:12:56

Unfortunately Heroku doesn't support installing additional libraries or binaries to stacks. The best workaround is to vendor these into your project. You'll need to use 64-bit Linux versions to make them work on Heroku; compiling statically can also help ensure that any dependencies needed are included. Similarly, for gems that depend on external libraries, we recommend compiling the gem statically and vendoring it into your project.

If you do wish to try to vendor your binary, library, or gem, you can use Heroku as your build environment. One of Herokus engineers created a build server that allows you to upload source code, run the compilation step, and then download the resulting binary. You can find this project on Github under the name "Vulcan".

Heres a link for more instructions... https://devcenter.heroku.com/articles/buildpack-binaries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!