From 8078c9ffcec46b6daf396a9d76ef915066cc8e9d Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Tue, 5 Apr 2016 07:24:12 -0700 Subject: [PATCH 1/4] Added a link to Tomas' dockerized version of the app --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 622e345..b912240 100644 --- a/README.md +++ b/README.md @@ -21,3 +21,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). From 3518ca8a644f5d35f2b9c4df7c81608f705017a5 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Tue, 24 May 2016 11:42:41 -0700 Subject: [PATCH 2/4] Add dyno formation to app.sjon --- app.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app.json b/app.json index 46600b8..3115828 100644 --- a/app.json +++ b/app.json @@ -12,5 +12,14 @@ "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 From 3b655ff9c61a336424dc3adcbe29fb5160e07db4 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Tue, 24 May 2016 12:02:44 -0700 Subject: [PATCH 3/4] fix app.json --- app.json | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app.json b/app.json index 3115828..27f07bf 100644 --- a/app.json +++ b/app.json @@ -14,12 +14,13 @@ }, "addons": ["heroku-postgresql", "heroku-redis"], "formation": { - "web": { - "quantity": 1, - "size": "Free" - }, - "worker": { - "quantity": 1, - "size": "Free" - } + "web": { + "quantity": 1, + " size": "Free" + }, + "worker": { + "quantity": 1, + "size": "Free" + } + } } \ No newline at end of file From 4c3d7f3bf3f6dd35fcca76666204da9a166462a1 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Tue, 24 May 2016 12:04:57 -0700 Subject: [PATCH 4/4] We don't need the formation warning any more, yay. --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index b912240..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`).)