diff --git a/README.md b/README.md index 622e345..35cdcd4 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,6 @@ You can visit [my deployment of the example online](https://django-channels-exam [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/jacobian/channels-example) -**WARNING:** you'll need to scale the `worker` process type up after using the button. Use the Dashboard, or run `heroku ps:scale web=1:free worker=1:free`. - ## Running locally To run this app locally, you'll need Python, Postgres, and Redis. (On my Mac, I installed [Postgres.app](http://postgresapp.com/documentation/) and Redis from Homebrew (`brew install redis`).) @@ -21,3 +19,7 @@ Then, to run: - If you use [heroku local](https://devcenter.heroku.com/articles/heroku-local), or [foreman](https://github.com/ddollar/foreman)/[forego](https://github.com/ddollar/forego), edit `.env` to add `DATABASE_URL` and `REDIS_URL`, then start `heroku local`/`foreman`/`forego`. - Or, to run locally with `runserver`, set `DATABASE_URL` and `REDIS_URL` in your environ, then run `python manage.py runserver`. - Or, to run locally with multiple proceses by setting the environ, then running the two commands (`daphne` and `runworker`) as shown in the `Procfile`. + +## Running with Docker + +Tomas Tomecek put together a [Dockerized version of this app](https://github.com/TomasTomecek/open-house-2016-demo). diff --git a/app.json b/app.json index 46600b8..27f07bf 100644 --- a/app.json +++ b/app.json @@ -12,5 +12,15 @@ "generator": "secret" } }, - "addons": ["heroku-postgresql", "heroku-redis"] + "addons": ["heroku-postgresql", "heroku-redis"], + "formation": { + "web": { + "quantity": 1, + " size": "Free" + }, + "worker": { + "quantity": 1, + "size": "Free" + } + } } \ No newline at end of file