2020-01-05 17:07:45 +01:00
|
|
|
SERVER := voicegardens.server
|
|
|
|
REMOTE_HOST := voicegardens.org
|
|
|
|
ARCHIVE_DIR := voicegardens/archive
|
|
|
|
STATIC_DIR := voicegardens/static
|
|
|
|
ZOOM_LEVEL := 5
|
2019-12-21 10:24:34 +01:00
|
|
|
|
2019-12-21 12:35:21 +01:00
|
|
|
default: dev-serve
|
2019-12-11 11:20:35 +01:00
|
|
|
|
2019-12-21 11:46:27 +01:00
|
|
|
dev-serve:
|
2019-12-22 05:36:48 +01:00
|
|
|
@FLASK_ENV=development FLASK_APP=$(SERVER) flask run
|
|
|
|
|
|
|
|
prod-serve:
|
|
|
|
@gunicorn --workers 1 --bind 9090 $(SERVER):app
|
2019-12-21 10:24:34 +01:00
|
|
|
|
|
|
|
clear-archive:
|
|
|
|
@rm -rf $(ARCHIVE_DIR)/*
|
2019-12-21 11:46:27 +01:00
|
|
|
|
2019-12-22 05:36:48 +01:00
|
|
|
doesitsparkjoy:
|
|
|
|
@fab -H $(REMOTE_HOST) doesitsparkjoy
|
2019-12-21 13:17:13 +01:00
|
|
|
|
2019-12-22 05:36:48 +01:00
|
|
|
voicegardens:
|
|
|
|
@fab -H $(REMOTE_HOST) voicegardens
|
2020-01-05 12:08:43 +01:00
|
|
|
|
|
|
|
tiles:
|
2020-01-05 17:07:45 +01:00
|
|
|
@gdal2tiles.py -p raster -z 0-$(ZOOM_LEVEL) -w none $(STATIC_DIR)/images/pink.png $(STATIC_DIR)/tiles
|