Skip to content

Commit

Permalink
datafiles already included in main bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
bevacqua committed May 4, 2017
1 parent 0cf9a6b commit d5e6f83
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Expand Up @@ -60,13 +60,9 @@ installation

$ npm install geoip-lite

### 2. get the datafiles
### 2. update the datafiles (optional)

Then download the city data files from https://github.com/bluesmoon/node-geoip/tree/master/data
You need to get `geoip-city.dat` and `geoip-city-names.dat` and put them into the `data/` directory
of this package.

You could also run `npm run-script updatedb` to do this automatically.
You could run `npm run-script updatedb` to do this automatically.

**NOTE** that this requires a lot of RAM. It is known to fail on on a Digital Ocean or AWS micro instance.
There are no plans to change this. `geoip-lite` stores all data in RAM in order to be fast.
Expand Down

0 comments on commit d5e6f83

Please sign in to comment.