Luke Murphy
5 years ago
3 changed files with 12 additions and 5 deletions
@ -1,9 +1,14 @@ |
|||||
ARCHIVE_DIR := ./vocoder/archive |
PROD_PORT := :9090 |
||||
|
PROD_WORKERS := 4 |
||||
|
ARCHIVE_DIR := ./vocoder/archive |
||||
|
|
||||
default: serve |
default: serve |
||||
|
|
||||
serve: |
dev-serve: |
||||
@FLASK_ENV=development FLASK_APP=vocoder.server flask run |
@FLASK_ENV=development FLASK_APP=vocoder.server flask run |
||||
|
|
||||
clear-archive: |
clear-archive: |
||||
@rm -rf $(ARCHIVE_DIR)/* |
@rm -rf $(ARCHIVE_DIR)/* |
||||
|
|
||||
|
prod-serve: |
||||
|
@gunicorn --workers $(PROD_WORKERS) --bind $(PROD_PORT) vocoder.server:app |
||||
|
@ -1,2 +1,4 @@ |
|||||
Flask==1.1.1 |
fabric==2.5.0 |
||||
Flask-Cors==3.0.8 |
flask-cors==3.0.8 |
||||
|
flask==1.1.1 |
||||
|
gunicorn==20.0.4 |
||||
|
Loading…
Reference in new issue