Browse Source

Make a few moves towards getting this to deploy

master
decentral1se 9 months ago
parent
commit
4c03ac4499
Signed by: decentral1se <lukewm@riseup.net> GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 12 additions and 5 deletions
  1. +1
    -1
      README.md
  2. +7
    -2
      makefile
  3. +4
    -2
      requirements.txt

+ 1
- 1
README.md View File

@@ -47,7 +47,7 @@ $ pip install -r requirements.txt
### Run the server

```
$ make serve
$ make dev-serve
```

### Layers of the Onion


+ 7
- 2
makefile View File

@@ -1,9 +1,14 @@
ARCHIVE_DIR := ./vocoder/archive
PROD_PORT := :9090
PROD_WORKERS := 4
ARCHIVE_DIR := ./vocoder/archive

default: serve

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

+ 4
- 2
requirements.txt View File

@@ -1,2 +1,4 @@
Flask==1.1.1
Flask-Cors==3.0.8
fabric==2.5.0
flask-cors==3.0.8
flask==1.1.1
gunicorn==20.0.4

Loading…
Cancel
Save