From 8e99bf42ea36b2f31c2781bc9cb8437735d9da13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Fonseca?= Date: Tue, 6 Sep 2016 09:50:41 +0100 Subject: [PATCH] Add mention of cluster in a global configuration --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 5ed9a72..62b191b 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,12 @@ Pusher.key = 'your-pusher-key' Pusher.secret = 'your-pusher-secret' ``` +If you created your app in a different cluster to the default cluster, you must set it as follows: + +``` ruby +Pusher.cluster = 'your-app-cluster' +``` + Global configuration will automatically be set from the `PUSHER_URL` environment variable if it exists. This should be in the form `http://KEY:SECRET@api.pusherapp.com/apps/APP_ID`. On Heroku this environment variable will already be set. If you need to make requests via a HTTP proxy then it can be configured