voicegardens/makefile
2020-01-05 17:07:45 +01:00

26 lines
564 B
Makefile

SERVER := voicegardens.server
REMOTE_HOST := voicegardens.org
ARCHIVE_DIR := voicegardens/archive
STATIC_DIR := voicegardens/static
ZOOM_LEVEL := 5
default: dev-serve
dev-serve:
@FLASK_ENV=development FLASK_APP=$(SERVER) flask run
prod-serve:
@gunicorn --workers 1 --bind 9090 $(SERVER):app
clear-archive:
@rm -rf $(ARCHIVE_DIR)/*
doesitsparkjoy:
@fab -H $(REMOTE_HOST) doesitsparkjoy
voicegardens:
@fab -H $(REMOTE_HOST) voicegardens
tiles:
@gdal2tiles.py -p raster -z 0-$(ZOOM_LEVEL) -w none $(STATIC_DIR)/images/pink.png $(STATIC_DIR)/tiles