2020-01-05 17:07:45 +01:00
|
|
|
SERVER := voicegardens.server
|
|
|
|
REMOTE_HOST := voicegardens.org
|
|
|
|
ARCHIVE_DIR := voicegardens/archive
|
|
|
|
STATIC_DIR := voicegardens/static
|
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
|
|
|
|
2020-02-11 14:27:43 +01:00
|
|
|
clear-local-archive:
|
2019-12-21 10:24:34 +01:00
|
|
|
@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
|
|
|
|
2020-02-11 14:27:43 +01:00
|
|
|
voicegardens:
|
|
|
|
@fab -H $(REMOTE_HOST) voicegardens
|
|
|
|
|
2020-01-07 19:56:12 +01:00
|
|
|
cleanarchives:
|
|
|
|
@fab -H $(REMOTE_HOST) cleanarchives
|
2020-02-11 14:27:43 +01:00
|
|
|
|
|
|
|
dailycron:
|
|
|
|
@fab -H $(REMOTE_HOST) dailycron
|