mirror of
https://github.com/mpolden/echoip.git
synced 2024-11-10 07:27:22 +01:00
Download GeoIP databases on startup
This commit is contained in:
parent
4974f9387b
commit
66719b9932
6
Makefile
6
Makefile
@ -47,3 +47,9 @@ docker-test:
|
||||
|
||||
docker-push: docker-test docker-login
|
||||
docker push $(DOCKER_IMAGE)
|
||||
|
||||
heroku-run: geoip-download
|
||||
ifndef PORT
|
||||
$(error PORT must be set)
|
||||
endif
|
||||
echoip -f data/country.mmdb -c data/city.mmdb -a data/asn.mmdb -p -r -H CF-Connecting-IP -H X-Forwarded-For -l :$(PORT)
|
||||
|
@ -1,7 +1,5 @@
|
||||
build:
|
||||
languages:
|
||||
- go
|
||||
pre:
|
||||
- make geoip-download
|
||||
run:
|
||||
web: echoip -f data/country.mmdb -c data/city.mmdb -a data/asn.mmdb -p -r -H CF-Connecting-IP -H X-Forwarded-For -l :$PORT
|
||||
web: make heroku-run
|
||||
|
Loading…
Reference in New Issue
Block a user