-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move all the http stuff in to go-whosonfirst-spatial-http
- Loading branch information
thisisaaronland
committed
Apr 4, 2020
1 parent
9af2765
commit f85d833
Showing
145 changed files
with
11 additions
and
10,810 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +0,0 @@ | ||
CWD=$(shell pwd) | ||
|
||
go-bindata: | ||
mkdir -p cmd/go-bindata | ||
mkdir -p cmd/go-bindata-assetfs | ||
curl -s -o cmd/go-bindata/main.go https://raw.githubusercontent.com/whosonfirst/go-bindata/master/cmd/go-bindata/main.go | ||
curl -s -o cmd/go-bindata-assetfs/main.go https://raw.githubusercontent.com/whosonfirst/go-bindata-assetfs/master/cmd/go-bindata-assetfs/main.go | ||
|
||
bake: | ||
@make bake-static | ||
@make bake-templates | ||
|
||
bake-static: | ||
go build -mod vendor -o bin/go-bindata cmd/go-bindata/main.go | ||
go build -mod vendor -o bin/go-bindata-assetfs cmd/go-bindata-assetfs/main.go | ||
rm -f static/*~ static/css/*~ static/javascript/*~ | ||
@PATH=$(PATH):$(CWD)/bin bin/go-bindata-assetfs -pkg www -o http/www/staticfs.go static static/javascript/ static/css/ | ||
|
||
bake-templates: | ||
rm -rf templates/html/*~ | ||
bin/go-bindata -pkg templates -o assets/templates/html.go templates/html | ||
|
||
debug: | ||
@make bake | ||
go run -mod vendor cmd/spatial-server/main.go -enable-www -enable-properties -spatial-database-uri 'rtree:///?strict=false' -properties-reader-uri 'whosonfirst:///?reader=fs://$(REPO)/data&cache=gocache://' -data-endpoint $(DATA_ENDPOINT) -nextzen-apikey $(APIKEY) -mode directory:// $(REPO)/data | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.