heroku-buildpack-geoip This should be used with https://github.com/ddollar/heroku-buildpack-multi It adds the geoip c library and a downloads an ip db from maxmind.