Use Pusher to remotely drive your ShowOff presentation on remote users' browsers.
Use Pusher to remotely drive your ShowOff presentation on remote users' browsers.
This gem is preconfigured to use the Heroku addon format for Pusher configs. These instructions assume you've already set up your ShowOff presentation for Heroku (showoff heroku
).
heroku addons:add pusher
heroku config
# => PUSHER_SOCKET_URL => ws://ws.pusherapp.com:80/app/PUSHER_SOCKET_ID
# => PUSHER_URL => http://PUSHER_KEY:[email protected]/apps/PUSHER_APP_ID
gem 'showoff-pusher'
require "showoff"
require "showoff/pusher"
use ShowOff::Pusher
run ShowOff.new
!SLIDE
# My Presentation #
<script src="http://js.pusherapp.com/1.9/pusher.min.js"></script>
<script src="/javascripts/pusher.js"></script>
heroku config:add SHOWOFF_SECRET='some_super_secret_key'
In your browser, visit the following URL to control the presentation:
http://myapp.herokuapp.com/presenter?presenter=SHOWOFF_SECRET
By default, SHOWOFF_SECRET
is PleaseChangeMe
.
Your users will be able to follow along with the presentation by visiting http://myapp.herokuapp.com/
Adapted from lmarburger's gist: https://gist.github.com/1180118