Skip to content
Geo libraries for Heroku
Branch: master
Clone or download
schneems and cyberdelia Don’t write to .bundle/config (#49)
Instead or writing to .bundle/config we can instead us the environment variable interface present to define bundler config vars. I wrote about this more here: https://devcenter.heroku.com/articles/bundler-configuration#environment-variable-behavior

This should provide the same behavior as before. 

I did notice one issue with the current implementation and that is the values in .bundle/config that are written are the tmp dir paths from build time and not the paths to /app for runtime, though I don’t think it matters, it can’t hurt to fix it.
Latest commit 77fe3e6 Aug 17, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Don’t write to .bundle/config (#49) Aug 17, 2018
support
.gitignore
README.md

README.md

Heroku buildpack: geo

This is a Heroku buildpack that vendors main geo/gis libraries like geos, proj and gdal.

You will use this buildpack with other major buildpack such as Ruby buildpack.

Usage

Example usage:

$ heroku buildpacks:set https://github.com/cyberdelia/heroku-geo-buildpack.git
$ heroku buildpacks:add heroku/ruby

Run heroku buildpacks to make sure that heroku-geo-buildpack is added before the language buildpacks.

$ heroku buildpacks
=== sushi Buildpack URLs
1. https://github.com/cyberdelia/heroku-geo-buildpack.git
2. heroku/ruby

Testing

For Geo Django:

>>> from django.contrib.gis import gdal
>>> gdal.HAS_GDAL
True

For rgeo:

>>> require 'rgeo'
>>> RGeo::CoordSys::Proj4.supported?
=> true
>>> RGeo::Geos.supported?
=> true
You can’t perform that action at this time.