在heroku雪松上安装GEOS [英] Installing GEOS on heroku cedar
问题描述
我们遵循本指南: https://devcenter.spacialdb.com/Heroku.html ,它没有用。
我们注意到存储在提供的geos二进制文件中的路径(/ app / tmp / geos)是错误的,所以我们用vulcan构建了我们自己的二进制文件。
我们更改了参数BUNDLE_BUILD__RGEO),但我们无法完成工作。我们在自定义rgeo gem中对geos路径进行了硬编码,没有任何成功。 b
我们还尝试了其他构建脚本( https://github.com / roximity / heroku-buildpack-ruby-geos )但它们太旧了,很难让它们与heroku的一起更新。
我们正在使用ruby 2.0.0-p195和Rails 3.2.13
我刚创建了 heroku-buildpack-rgeo-prep 来解决这个问题。
这个buildpack会覆盖.bundle / config,将BUNDLE_BUILD__RGEO设置为当前的构建路径。不幸的是,你不能设置BUNDLE_BUILD_RGEO = / app,因为你的项目实际上是建立在/ tmp / build_1890cktlpat5d之类的地方。
希望这个buildpack会让它更加痛苦在Heroku上使用RGeo。
we have troubles in installing the GEOS library on heroku cedar stack.
We followed this guide: https://devcenter.spacialdb.com/Heroku.html and it didn't work.
We noticed that the path (/app/tmp/geos) stored in the provided geos binaries was wrong, so we built our own binaries with vulcan.
We changed parameters (BUNDLE_BUILD__RGEO) accordingly, but we weren't able to make it work.
We even hardcoded geos paths in our custom rgeo gem without any success
We also tried other buildscripts (https://github.com/roximity/heroku-buildpack-ruby-geos) but they are too old and it will be difficult to keep them up to date with heroku's one
We are using ruby 2.0.0-p195 and Rails 3.2.13
I just created heroku-buildpack-rgeo-prep to address this problem.
This buildpack overwrites .bundle/config to set BUNDLE_BUILD__RGEO to the current build path. Unfortunately, you can't set BUNDLE_BUILD_RGEO=/app because your project is actually built somewhere like /tmp/build_1890cktlpat5d.
Hopefully, this buildpack will make it much less painful to use RGeo on Heroku.
这篇关于在heroku雪松上安装GEOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!