Posts>GeoDjango on Heroku in 2020

GeoDjango on Heroku in 2020

Marc Gibbons
Published: February 6, 2020

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 a file called Aptfile at the root-level of the project and add the following packages:
    # Aptfile
    libgeos-dev
    libproj-dev
  3. That's it! Commit & deploy.