Browse Source

Add "deploy" target to makefile

develop
Bèr Kessels 1 year ago
parent
commit
cfd2ea5b53
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      Makefile

+ 3
- 0
Makefile View File

@@ -33,6 +33,9 @@ import:
./bin/openaddr2copy < /mnt/sda/OSM/openaddr/nl/countrywide.csv | psql postgresql://$(DB_USER):$(DB_PASSWORD)@$(DB_HOST):$(DB_PORT)/$(DB_NAME) -c "COPY query_addresses FROM STDIN DELIMITER AS ',' CSV HEADER"
osmium tags-filter /mnt/sda/OSM/netherlands-latest.osm.pbf n/amenity=cafe,bar,restaurant,biergarten,fast_food,food_court,ice_cream,pub n/shop n/amenity=bicycle_parking,parking,parking_entrance --output-format osm | osm2geojson | bin/sink

deploy:
$(CMD_PREFIX) cap production deploy

_docker-start:
@if [ -z $(docker ps --no-trunc | grep $(CONTAINER_NAME)) ]; then docker start $(CONTAINER_NAME); fi


Loading…
Cancel
Save