2011-03-28 08:10:13 +08:00
|
|
|
For run the application:
|
|
|
|
1) Install ruby and rubygems
|
|
|
|
2) Add the sinatra gem
|
|
|
|
gem install sinatra
|
|
|
|
3) Add the haml gem
|
|
|
|
gem install haml
|
2011-03-28 10:35:24 +08:00
|
|
|
4) gem install thin
|
|
|
|
5) gem install hiredis
|
|
|
|
6) download redis-rb, untar, cd, gem install redis
|
|
|
|
7) gem install SystemTimer
|
|
|
|
8) Run:
|
2011-03-28 08:10:13 +08:00
|
|
|
ruby -rubygems main.rb
|
|
|
|
and check:
|
|
|
|
http://<yourip>:4567
|