voicegardens/makefile

36 lines
826 B
Makefile
Raw Normal View History

2020-02-15 20:02:05 +01:00
ARCHIVE_DIR := voicegardens/archive
FIXED_ARCHIVE_DIR := voicegardens/fixed-archive
REMOTE_HOST := voicegardens.org
SERVER := voicegardens.server
STATIC_DIR := voicegardens/static
2019-12-21 10:24:34 +01:00
2019-12-21 12:35:21 +01:00
default: dev-serve
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
2020-02-11 14:27:43 +01:00
clear-local-archive:
2020-02-15 20:02:05 +01:00
@rm -rf $(ARCHIVE_DIR)/* && cp $(FIXED_ARCHIVE_DIR)/* $(ARCHIVE_DIR)
offline:
@fab -H $(REMOTE_HOST) offline
2019-12-21 13:17:13 +01:00
2020-02-11 14:27:43 +01:00
voicegardens:
@fab -H $(REMOTE_HOST) voicegardens
cleanarchives:
@fab -H $(REMOTE_HOST) cleanarchives
2020-02-11 14:27:43 +01:00
dailycron:
@fab -H $(REMOTE_HOST) dailycron
2020-02-11 15:48:08 +01:00
2020-02-19 22:27:40 +01:00
hourlycron:
@fab -H $(REMOTE_HOST) hourlycron
release: offline voicegardens
2020-02-11 15:52:25 +01:00
.PHONY: dev-serve prod-serve clear-local-archive offline voicegardens cleanarchives dailycron release