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