Git Product home page Git Product logo

tedcheng / heroku-buildpack-maxmind Goto Github PK

View Code? Open in Web Editor NEW

This project forked from instacart/heroku-buildpack-maxmind

0.0 0.0 0.0 16 KB

Ensure your application has the latest copy of MaxMind data when deploying. Ideally, you should have a way to restart your application to make sure this build back happens often enough (if you deploy daily/weekly, you have nothing to worry about).

License: MIT License

Shell 100.00%

heroku-buildpack-maxmind's Introduction

MaxMind Build Pack

Ensure your application has the latest copy of MaxMind data when deploying. Ideally, you should have a way to restart your application to make sure this build back happens often enough (if you deploy daily/weekly, you have nothing to worry about).

How it Works

The database file(s) is saved to a Heroku cache directory that is persisted across builds. If the database file does not exist, or is older than a week, a new copy is downloaded and moved to your project before deployment. All database files are stored in the root of your project when deployed.

Required Environment Variables

  • MAXMIND_KEY = The license key they provided which allows you to download files.
  • MAXMIND_EDITIONS = Comma delimited list of databases to download ie: "GeoIP2-ISP,GeoIP2-City,GeoIP2-Country"

How to Use

Follow the instructions at https://github.com/ddollar/heroku-buildpack-multi for using multiple build packs. Simply add this repository to this list and wallah!

TODO

  • Find a way to query MaxMind if new data is available vs. using file time

heroku-buildpack-maxmind's People

Contributors

parisholley avatar montanalow avatar ryanisnan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.