Run gunicorn and webpack through Procfile

This commit is contained in:
Ian Minoso 2016-10-19 12:43:30 -04:00
parent 5a45f140c2
commit 79545bc2bc
3 changed files with 10 additions and 2 deletions

3
Procfile Normal file
View file

@ -0,0 +1,3 @@
app: gunicorn -c conf/gunicorn_local.py application:application
webpack: npm run watch

View file

@ -120,9 +120,14 @@ The username and password of the admin test account is `devtable` and `password`
### Local Scripts ### Local Scripts
Running the web server locally requires [goreman](https://github.com/mattn/goreman):
```
go get github.com/mattn/goreman
```
* `local-run` runs the web server for testing * `local-run` runs the web server for testing
* `local-test` runs the unit test suite * `local-test` runs the unit test suite
* `npm run build` builds front end dependencies (webpack, typescript, react) * `npm run build` builds front end dependencies
* `npm run watch` a watcher for webpack * `npm run watch` a watcher for webpack
### Development inside Docker ### Development inside Docker

View file

@ -1 +1 @@
gunicorn -c conf/gunicorn_local.py application:application goreman start