Tuesday, March 8, 2011

Installing Ramaze (on Windows)

1. Install Ramaze, using PIK.
C:\>pik gem install ramaze
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32]
...
ruby 1.8.7 (2010-12-23 patchlevel 330) [i386-mingw32]
...
ruby 1.9.1p430 (2010-08-16 revision 28998) [i386-mingw32]
...
ruby 1.9.2p136 (2010-12-25) [i386-mingw32]

2. Create a project.
C:\works\ruby>ramaze create blog
Found proto at: "C:/Ruby192/lib/ruby/gems/1.9.1/gems/ramaze-2011.01.30/lib/proto", proceeding...

       mkdir
       mkdir    controller
       mkdir    layout
       mkdir    model
       mkdir    public
       mkdir    public/css
       mkdir    public/js
       mkdir    spec
       mkdir    view
      create    app.rb
      create    config.ru
      create    controller/init.rb
      create    controller/main.rb
      create    layout/default.xhtml
      create    model/init.rb
      create    public/.htaccess
      create    public/css/screen.css
      create    public/dispatch.fcgi
      create    public/favicon.ico
      create    public/js/jquery.js
      create    public/ramaze.png
      create    spec/main.rb
      create    start.rb
      create    view/index.xhtml

3. Start ramze.
C:\works\ruby>cd blog
C:\works\ruby\blog>ramaze start
[2011-03-08 05:43:31] INFO  WEBrick 1.3.1
[2011-03-08 05:43:31] INFO  ruby 1.9.2 (2010-12-25) [i386-mingw32]
[2011-03-08 05:43:31] INFO  WEBrick::HTTPServer#start: pid=7108 port=7000

4. View it in browser.



5. Resouce.
http://www.ramaze.net/

No comments:

Post a Comment