2019-12-21 11:46:27 +01:00
|
|
|
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
|
2019-12-11 11:20:35 +01:00
|
|
|
|
2019-12-21 11:46:27 +01:00
|
|
|
dev-serve:
|
2019-12-11 11:20:35 +01:00
|
|
|
@FLASK_ENV=development FLASK_APP=vocoder.server flask run
|
2019-12-21 10:24:34 +01:00
|
|
|
|
|
|
|
clear-archive:
|
|
|
|
@rm -rf $(ARCHIVE_DIR)/*
|
2019-12-21 11:46:27 +01:00
|
|
|
|
|
|
|
prod-serve:
|
|
|
|
@gunicorn --workers $(PROD_WORKERS) --bind $(PROD_PORT) vocoder.server:app
|