From 79545bc2bc9a9bddd7d1d2a1845146d6ce63919e Mon Sep 17 00:00:00 2001 From: Ian Minoso Date: Wed, 19 Oct 2016 12:43:30 -0400 Subject: [PATCH] Run gunicorn and webpack through Procfile --- Procfile | 3 +++ README.md | 7 ++++++- local-run.sh | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 Procfile diff --git a/Procfile b/Procfile new file mode 100644 index 000000000..097fc0825 --- /dev/null +++ b/Procfile @@ -0,0 +1,3 @@ +app: gunicorn -c conf/gunicorn_local.py application:application +webpack: npm run watch + diff --git a/README.md b/README.md index 9813f2b15..fd78efa2f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/local-run.sh b/local-run.sh index 543305903..84679d83d 100755 --- a/local-run.sh +++ b/local-run.sh @@ -1 +1 @@ -gunicorn -c conf/gunicorn_local.py application:application +goreman start