Giovanni's Cat utilities set Svn
Status: Beta
Brought to you by:
giovanni_giorgi
== Welcome Manhattan Manhattan is a dice game, and the second ruby application written by Giovanni Giorgi Take a nick name and play the game. == Developers == Userful links (click ctrl on eclipse to follow them) http://www.onlamp.com/lpt/a/5546 http://wiki.rubyonrails.com/rails/pages/UnderstandingMigrations Example ruby script/generate migration add_a_new_table http://wiki.rubyonrails.com/rails/pages/PostgreSQL Testing http://manuals.rubyonrails.com/read/chapter/25 Actual eclipse plugins: http://www.radrails.org rubyeclipse.sf.net On eclispe 3.1 select extssh as auth. method and live happy Dev Platform: +Windows + Oracle 9i Use postgres-pr on Windooze and postgres on Mac as driver +MacOs X Tiger + Oracle 10g == DevDatabase PostgreSQL 8.0 Admin passwords: postgres/xxxxxx Database: dev Username manhattan == == Dev Running ruby script/server Start here: http://localhost:3000/players/list ## Migrate to version K. Dropping do not work well (reverse migration) rake migrate VERSION=k Login controller was created following these steps: Ref http://wiki.rubyonrails.com/rails/pages/LoginGenerator gem install login_generator ruby script/generate login Account -p == == Production install / Proxying A easy way to set up ruby is to proxying the request versus WEBrick. To to so, I have changed the "routes.rb" to prepend the /rails/ path to every url. Then I set up on apache a proxy rule like this: <IfModule mod_proxy.c> ProxyPass /rails/ http://yoda.local:3000/rails/ ProxyRequests Off </IfModule> It works fine and result also in a centrilized way of distributing the load. For more magic tips see http://manuals.rubyonrails.com/read/chapter/65