15 lines
296 B
Makefile
15 lines
296 B
Makefile
PROD_PORT := :9090
|
|
PROD_WORKERS := 4
|
|
ARCHIVE_DIR := ./vocoder/archive
|
|
|
|
default: dev-serve
|
|
|
|
dev-serve:
|
|
@FLASK_ENV=development FLASK_APP=vocoder.server flask run
|
|
|
|
clear-archive:
|
|
@rm -rf $(ARCHIVE_DIR)/*
|
|
|
|
prod-serve:
|
|
@gunicorn --workers $(PROD_WORKERS) --bind $(PROD_PORT) vocoder.server:app
|