Skip to content

Fork of Heroku's Ruby Buildpack for Cedar with added binaries for RGeo, namely geos 3.3, Proj 4.8

License

Notifications You must be signed in to change notification settings

jcamenisch/heroku-buildpack-rgeo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku RGeo Buildpack

Heroku RGeo Buildpack is a fork of Heroku's official Ruby buildpack with added binaries to support the rgeo gem.

Note: Work in progress

Usage

Note: for basic process, See heroku-buildpack-ruby README. The steps below assume a working knowledge of Heroku deployment.

Creating a new app with rgeo support

$ heroku create --stack cedar --buildpack http://github.com/jcamenisch/heroku-buildpack-rgeo.git

$ git push heroku master

Configuring an existing app with rgeo support

$ heroku config:add BUILDPACK_URL=http://github.com/jcamenisch/heroku-buildpack-rgeo.git LD_LIBRARY_PATH=/app/bin/geos/lib:/app/bin/proj/lib RECOMPILE_ALL_GEMS=1
...
$ heroku labs:enable user-env-compile
...
$ git push heroku master
...

The RECOMPILE_ALL_GEMS variable signals the build process to recompile the rgeo gem, so that the GEOS and PROJ binaries get linked in. The user-env-compile feature is necessary to allow RECOMPILE_ALL_GEMS to be read.

Both of these settings are unnecessary for the long term, and can be removed after RGeo is running properly, as follows.

$ heroku config:remove RECOMPILE_ALL_GEMS
...
$ heroku labs:disable user-env-compile
...

Known Issues

Sometimes deployments fail with a message like the following:

...
-----> Fetching custom git buildpack... failed

 !     Heroku push rejected due to an unrecognized error.
 !     We've been notified, see http://support.heroku.com if the problem persists.


To git@heroku.com:app-name.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:app-name.git'
...

This problem is intermittent, and the solution is to repeat the deployment.

About

Fork of Heroku's Ruby Buildpack for Cedar with added binaries for RGeo, namely geos 3.3, Proj 4.8

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 84.3%
  • Shell 15.7%