Skip to content

Commit

Permalink
Merge pull request #127 from bevacqua/patch-1
Browse files Browse the repository at this point in the history
Fix readme, datafiles already included in main bundle
  • Loading branch information
bluesmoon committed May 4, 2017
2 parents 0cf9a6b + 5c63d0f commit 10b43d1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
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.
Run `npm run-script updatedb` to update the data files.

**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 10b43d1

Please sign in to comment.