voicegardens/makefile

15 lines
296 B
Makefile
Raw Normal View History

PROD_PORT := :9090
PROD_WORKERS := 4
ARCHIVE_DIR := ./vocoder/archive
2019-12-21 10:24:34 +01:00
2019-12-21 12:35:21 +01:00
default: dev-serve
dev-serve:
@FLASK_ENV=development FLASK_APP=vocoder.server flask run
2019-12-21 10:24:34 +01:00
clear-archive:
@rm -rf $(ARCHIVE_DIR)/*
prod-serve:
@gunicorn --workers $(PROD_WORKERS) --bind $(PROD_PORT) vocoder.server:app