Skip to content

pusher/pusher-test

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Pusher Test

Available at http://test.pusher.com/.

The objective is to make it trivial to manually test an arbitrary pusher-js version on an arbitrary device, and to expose enough debug info and twiddleable knobs to allow experiment driven problem solving.

Developing

Copy the provided config.yml.example to config.yml and fill in your app id, key, and secret.

Install the bundle if required

bundle install

and run

bundle exec shotgun

Then visit http://localhost:9393/.

Using multiple environments

It's possible to create multiple environments in config.yml and access them by setting a query parameter: http://localhost:9393/?env=myenv.

See Environment#initialize in app.rb for a full list of possible options.

Deploying

heroku git:remote --app pusher-test-heroku
git push heroku master

Adding a new cluster

  1. Add the new cluster name to this array and deploy
  2. Create an app within the cluster
    1. heroku run rails console --app global-production
    2. Account.where(email: "services+pushertest@pusher.com").first.apps.create(name: "test.pusher.com <cluster name>", cluster_id: <cluster ID>, ssl_only: false, client_events: true, batch_webhooks: true, counting: false)
    3. Account.where(email: "services+pushertest@pusher.com").first.apps.where(cluster_id: <cluster ID>).first.tokens
  3. Modify the CONFIG_JSON environment variable in Heroku with the details for the new cluster and app

About

Simple website which allows manual testing of pusher-js versions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published