Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 813 Bytes
update-data:
@echo "Updating geoip data"; \
cd node_modules/geoip-lite/data; \
curl -O "http://cdn.applifier.com/pub/geoip/GeoIPCountryCSV.zip"; \
unzip -u GeoIPCountryCSV.zip; \
rm GeoIPCountryCSV.zip; \
rm geoip-country.dat || echo "This is not a problem"; \
n use 0.8.18 ../lib/country-converter.js ./GeoIPCountryWhois.csv geoip-country.dat; \
rm GeoIPCountryWhois.csv
update-data-docker:
@echo "Updating geoip data"; \
cd node_modules/geoip-lite/data; \
curl -O "http://cdn.applifier.com/pub/geoip/GeoIPCountryCSV.zip"; \
unzip -u GeoIPCountryCSV.zip; \
rm GeoIPCountryCSV.zip; \
rm geoip-country.dat || echo "This is not a problem"; \
node ../lib/country-converter.js ./GeoIPCountryWhois.csv geoip-country.dat; \
rm GeoIPCountryWhois.csv
test:
@./node_modules/.bin/expresso
.PHONY: test
Jump to Line
Something went wrong with that request. Please try again.