Menu

Tree [r128] / trunk / manhattan /
 History

HTTPS access


File Date Author Commit
 app 2006-04-09 giovanni_giorgi [r52] Last fixes before temporary shutdown of the pro...
 bin 2006-01-22 giovanni_giorgi [r44] Created the Popaccount concept class
 config 2006-01-22 giovanni_giorgi [r45] Created the Popaccount concept class and moved ...
 db 2006-01-31 giovanni_giorgi [r51] Optimized DB Access
 doc 2006-04-09 giovanni_giorgi [r52] Last fixes before temporary shutdown of the pro...
 lib 2006-01-15 giovanni_giorgi [r40] Global Reorg. Written popman and mailman. Popma...
 log 2005-11-13 giovanni_giorgi [r23] *** empty log message ***
 mailSurfer 2006-04-09 giovanni_giorgi [r54] *** empty log message ***
 public 2006-01-26 giovanni_giorgi [r50] Beta 0.2 Optimized Post-processing
 script 2006-01-31 giovanni_giorgi [r51] Optimized DB Access
 test 2006-01-24 giovanni_giorgi [r47] Refactoring of pop account class
 .cvsignore 2006-04-09 giovanni_giorgi [r54] *** empty log message ***
 .project 2005-10-25 giovanni_giorgi [r10] Prima revisione
 CHANGELOG 2005-12-13 giovanni_giorgi [r35] Added note table and support for users note. No...
 INSTALL 2005-10-25 giovanni_giorgi [r10] Prima revisione
 RAKE_STATS 2005-10-27 giovanni_giorgi [r17] Started GameRoom use case/life cycle and so on
 README 2005-12-10 giovanni_giorgi [r29] *** empty log message ***
 Rakefile 2005-10-25 giovanni_giorgi [r11] Migration to 0.14

Read Me

== 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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.