Skip to content
glenux edited this page Aug 3, 2011 · 2 revisions

Development

Installing required dependencies

  • First, make sure that the /var/lib/gems/1.8/bin/ is in your path, as root.
  • Then install the bundle gem :
    sudo gem install bundle
  • And finally, the dependencies :
    sudo bundle install

Running the project

  • In a terminal, run the following script :
    ./run.sh
    That should display something like
    [2011-05-16 00:24:26] INFO WEBrick 1.3.1 [2011-05-16 00:24:26] INFO ruby 1.8.7 (2011-02-18) [x86_64-linux] [2011-05-16 00:24:31] INFO WEBrick::HTTPServer#start: pid=15759 port=9393
  • Then point your web browser to this url : http://0.0.0.0:9393

Notes

The project has switched from the shotgun debugging tool to the sinatra/reloader library.
The first one forks the process on every connection and is not able to maintain server-side persistant variables… and this is quite annoying, even for development & debugging purposes.

Clone this wiki locally