GeoDjango on Heroku in 2020

Feb 6, 2020 10:07 · 68 words · 1 minute read

It’s been a few years since I’ve used GIS on Heroku. Here’s a quick configuration guide to install GeoDjango dependencies on Heroku (without community buildpacks).

1. Add the Heroku apt buildpack

$ heroku buildpacks:add --index 1 https://github.com/heroku/heroku-buildpack-apt

2. Create an Aptfile

Create a file called Aptfile at the root-level of the project and add the following packages:

# Aptfile
libgeos-dev
libproj-dev

3. Deploy

That’s it! Commit & deploy.