36 lines
826 B
Makefile
36 lines
826 B
Makefile
ARCHIVE_DIR := voicegardens/archive
|
|
FIXED_ARCHIVE_DIR := voicegardens/fixed-archive
|
|
REMOTE_HOST := voicegardens.org
|
|
SERVER := voicegardens.server
|
|
STATIC_DIR := voicegardens/static
|
|
|
|
default: dev-serve
|
|
|
|
dev-serve:
|
|
@FLASK_ENV=development FLASK_APP=$(SERVER) flask run
|
|
|
|
prod-serve:
|
|
@gunicorn --workers 1 --bind 9090 $(SERVER):app
|
|
|
|
clear-local-archive:
|
|
@rm -rf $(ARCHIVE_DIR)/* && cp $(FIXED_ARCHIVE_DIR)/* $(ARCHIVE_DIR)
|
|
|
|
offline:
|
|
@fab -H $(REMOTE_HOST) offline
|
|
|
|
voicegardens:
|
|
@fab -H $(REMOTE_HOST) voicegardens
|
|
|
|
cleanarchives:
|
|
@fab -H $(REMOTE_HOST) cleanarchives
|
|
|
|
dailycron:
|
|
@fab -H $(REMOTE_HOST) dailycron
|
|
|
|
hourlycron:
|
|
@fab -H $(REMOTE_HOST) hourlycron
|
|
|
|
release: offline voicegardens
|
|
|
|
.PHONY: dev-serve prod-serve clear-local-archive offline voicegardens cleanarchives dailycron release
|