An online AI game using RTanque
- Any version of ruby from 2.0 up should be fine, tested with version 2.0 system ruby and version 2.2.2 from rvm
- Install redis
brew install redis
- Install postgres
brew install postgres
- Install ruby 2.2.2 and the DevKit from RubyInstaller
- Install redis from MSOpenTech
- install dependencies with
bundle install
- setup the database with
rake db:create
andrake db:migrate
- setup seed tanks with
rake db:seed
- on *nix, run
rake server
to start everything, or manually:- run redis
redis-server
- run the server with
rails c
- run resque with
QUEUE=* rake environment resque:work
- run redis
- run
rake stop
to kill background Rails or Redis processes left running
###Profiling
- To profile, run
rails server -r profile