Run gunicorn and webpack through Procfile
This commit is contained in:
parent
5a45f140c2
commit
79545bc2bc
3 changed files with 10 additions and 2 deletions
3
Procfile
Normal file
3
Procfile
Normal file
|
@ -0,0 +1,3 @@
|
|||
app: gunicorn -c conf/gunicorn_local.py application:application
|
||||
webpack: npm run watch
|
||||
|
|
@ -120,9 +120,14 @@ The username and password of the admin test account is `devtable` and `password`
|
|||
|
||||
### 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-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
|
||||
|
||||
### Development inside Docker
|
||||
|
|
|
@ -1 +1 @@
|
|||
gunicorn -c conf/gunicorn_local.py application:application
|
||||
goreman start
|
||||
|
|
Reference in a new issue