Comments (8)
+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.
@mariusa I don't understand. We cannot put the data files into the build for two reasons:
- The build file becomes too large to upload to npm
- 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.
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.
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.
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.
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.
Ok, sorry I can't help, don't know much about what Heroku is doing.
from node-geoip.
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)
- URLs in updatedb.js no longer work
- ERR_BUFFER_OUT_OF_BOUNDS after automatic update HOT 2
- Re: Database updates HOT 16
- Custom directory in updatedb doesn't work. HOT 6
- Sometimes geoip return null value HOT 3
- returns wrong country for 72.18.74.123 HOT 1
- Update database HOT 1
- 401 Unauthorized when trying to upgrade HOT 8
- Upgrade is extremely slow. HOT 4
- Get the postal / zip code ? HOT 1
- The included data is out of date HOT 2
- remove fs dependency
- IP from US but the returned result is from Africa HOT 3
- Incorrect geolocation for non-geolocated IPs HOT 8
- IPv6 not working HOT 4
- Error in getting the Info HOT 2
- Seeking insight into the development process and buffer lookup approach used. HOT 2
- updatedb.js: ERROR: HTTP Request Failed [302 Found]
- Cannot use geoip-lite in next js application HOT 3
- Custom data directory not working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-geoip.