21 lines
367 B
Makefile
21 lines
367 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
|
|
|
|
test-deploy:
|
|
@echo 'TODO'
|
|
|
|
prod-deploy:
|
|
@echo 'TODO'
|