Coder Social home page Coder Social logo

breaks heroku about node-geoip HOT 8 CLOSED

geoip-lite avatar geoip-lite commented on July 19, 2024
breaks heroku

from node-geoip.

Comments (8)

mariusa avatar mariusa commented on July 19, 2024

+1. The data files should be downloaded automatically during build, if not present. We cannot put files manually in module's folder, as it's getting re-downloaded by Heroku.

from node-geoip.

bluesmoon avatar bluesmoon commented on July 19, 2024

@mariusa I don't understand. We cannot put the data files into the build for two reasons:

  1. The build file becomes too large to upload to npm
  2. The data files will be out of date by the time you download the npm, so you'll need to get the new files anyway.

This is why the installation script automatically downloads the data files and converts them during installation.

from node-geoip.

mariusa avatar mariusa commented on July 19, 2024

This is why the installation script automatically downloads the data files and converts them during installation.

This is great then, thanks.

I am confused why this exists in README:

2 . get the datafiles

from node-geoip.

jesper-bylund avatar jesper-bylund commented on July 19, 2024

Did you actually get this working? Heroku build is timing out waiting for the database, locally I still need to run the update manually to get any database at all. :/ I'm confused.

from node-geoip.

bluesmoon avatar bluesmoon commented on July 19, 2024

I don't know why your heroku build is hanging. As of version 1.1.5, we no longer automatically upgrade the database files on installation, but also as of 1.1.0 we install the built in data files by default so that makes the package itself very large.

from node-geoip.

jesper-bylund avatar jesper-bylund commented on July 19, 2024

So what's happening right now is:
If I just install the package I get Null as a response. If I try to manually update the DB, Heroku Build times out. That's why I ended up in this thread. :/ Sorry for not having more information. Will dig deeper and report back.

from node-geoip.

bluesmoon avatar bluesmoon commented on July 19, 2024

Ok, sorry I can't help, don't know much about what Heroku is doing.

from node-geoip.

jesper-bylund avatar jesper-bylund commented on July 19, 2024

After a reinstall, it worked. I think I maybe installed an old version? Not sure. Either way, not a bug! Thank you!

from node-geoip.

Related Issues (20)

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.