Home controller using Sinatra::RocketIO::Linda
% git clone git://github.com/shokai/linda-base.git
- Ruby 1.8.7 ~ 2.0.0
- memcached
% brew install memcached
% gem install bundler
% bundle install
Register new Application on GitHub
% export GITHUB_APP_ID=abcd1234asdf
% export GITHUB_APP_SECRET=asdf135hujikohujiko71sdfcxvoip
session
% export SESSION_SECRET=foobar1234
start memcache
% memcached -vv -p 11211 -U 11211
set HTTP port 5000
% bundle exec rackup config.ru -p 5000
set WebSocket port 5001
% WS_PORT=5001 bundle exec rackup config.ru -p 5000
disable WebSocket
% WEBSOCKET=false bundle exec rackup config.ru -p 5000
% heroku create --stack cedar linda-base
% heroku addons:add memcachier:dev
% heroku config:set WEBSOCKET=false
% heroku config:set GITHUB_APP_ID=abcd1234asdf
% heroku config:set GITHUB_APP_SECRET=asdf135hujikohujiko71sdfcxvoip
% heroku config:set SESSION_SECRET=foobar1234
% git push heroku master
% heroku open