{"id":16655522,"url":"https://github.com/aaronrenner/heroku-buildpack-rgeo-prep","last_synced_at":"2025-04-09T18:13:24.262Z","repository":{"id":8858644,"uuid":"10568774","full_name":"aaronrenner/heroku-buildpack-rgeo-prep","owner":"aaronrenner","description":"A buildpack that allows the RGeo gem to be built successfully on Heroku.","archived":false,"fork":false,"pushed_at":"2014-10-27T22:32:24.000Z","size":115,"stargazers_count":17,"open_issues_count":3,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-09T18:13:18.341Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aaronrenner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-08T13:19:08.000Z","updated_at":"2021-01-20T20:46:50.000Z","dependencies_parsed_at":"2022-08-24T10:52:22.477Z","dependency_job_id":null,"html_url":"https://github.com/aaronrenner/heroku-buildpack-rgeo-prep","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronrenner%2Fheroku-buildpack-rgeo-prep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronrenner%2Fheroku-buildpack-rgeo-prep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronrenner%2Fheroku-buildpack-rgeo-prep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronrenner%2Fheroku-buildpack-rgeo-prep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaronrenner","download_url":"https://codeload.github.com/aaronrenner/heroku-buildpack-rgeo-prep/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085327,"owners_count":21045139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T09:53:17.893Z","updated_at":"2025-04-09T18:13:24.244Z","avatar_url":"https://github.com/aaronrenner.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# heroku-buildpack-rgeo-prep\n\nThis buildpack overwrites Heroku's default .bundle/config to set BUNDLE_BUILD__RGEO to Heroku's build directory.\n\n## Setup\n\nThis solution closely follows this [blog article](https://devcenter.spacialdb.com/Heroku.html) by SpacialDB.\n\n\nCreate this .buildpacks file in the root of your project.\n\n    https://github.com/peterkeen/heroku-buildpack-vendorbinaries.git\n    https://github.com/aaronrenner/heroku-buildpack-rgeo-prep.git\n    https://github.com/heroku/heroku-buildpack-ruby.git\n\nCreate this .vendor_urls file in the root of your project.\n\n    https://s3.amazonaws.com/spacialdb/heroku/geos-3.4.2.tar.gz\n    https://s3.amazonaws.com/spacialdb/heroku/proj-4.8.0.tar.gz\n\nAdd these files to git.\n\nNow, set up your heroku configuration.\n\n    heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git LD_LIBRARY_PATH=/app/lib\n\nIf you haven't already set up your heroku database for postgis, you need to run the following steps. You currently must have a production level database to enable postgis.\n\nSince postgis uses different settings in the database.yml, you need to modify the DATABASE_URL variable. Run the following command and extract the nessecary components out of it:\n\n    $ heroku config:get DATABASE_URL \n    postgres://\u003cusername\u003e:\u003cpassword\u003e@\u003chost\u003e:\u003cport\u003e/\u003cdatabase\u003e\n\nWith those variables, run the following command\n\n    $ heroku config:set DATABASE_URL=\"postgis://\u003cusername\u003e:\u003cpassword\u003e@\u003chost\u003e:\u003cport\u003e/\u003cdatabase\u003e?postgis_extension=true\u0026search_schema_path=public,postgis\"\n\nEnable PostGIS\n\n    $ heroku pg:psql\n    =\u003e CREATE EXTENSION postgis;\n\nDeploy\n\n    git push heroku master\n    \nVerify it worked\n\n    heroku run bash\n    ~\u003e bundle exec rails c\n\n    \u003e\u003e RGeo::Geos.supported?\n    =\u003e true\n    \u003e\u003e RGeo::CoordSys::Proj4.supported?\n    =\u003e true\n\nIf both of these are true, you should be ready to go.\n\n## Credits\n\nThis solution draws from many people's research including\n\n* https://github.com/jcamenisch/heroku-buildpack-rgeo\n* https://github.com/davekapp for help with troubleshooting the extconf.rb build process\n* https://gist.github.com/perplexes/5357663\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronrenner%2Fheroku-buildpack-rgeo-prep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaronrenner%2Fheroku-buildpack-rgeo-prep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronrenner%2Fheroku-buildpack-rgeo-prep/lists"}