Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 3992

Show
Ignore:
Timestamp:
03/20/06 05:14:28 (3 years ago)
Author:
david
Message:

Update docs and index.html [DHH]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/html/index.html

    r3981 r3992  
    231231            <ul class="links"> 
    232232              <li><a href="http://api.rubyonrails.org/">Rails API</a></li> 
    233               <li><a href="http://www.ruby-doc.org/stdlib/">Ruby standard library</a></li> 
    234               <li><a href="http://www.ruby-doc.org/core/">Ruby core</a></li> 
     233              <li><a href="http://stdlib.rubyonrails.org/">Ruby standard library</a></li> 
     234              <li><a href="http://corelib.rubyonrails.org/">Ruby core</a></li> 
    235235            </ul> 
    236236          </li> 
  • trunk/railties/README

    r3042 r3992  
    2828== Getting started 
    2929 
    30 1. Run the WEBrick servlet: <tt>ruby script/server</tt> (run with --help for options) 
    31    ...or if you have lighttpd installed: <tt>ruby script/lighttpd</tt> (it's faster) 
    32 2. Go to http://localhost:3000/ and get "Congratulations, you've put Ruby on Rails!" 
    33 3. Follow the guidelines on the "Congratulations, you've put Ruby on Rails!" screen 
     301. Start the web server: <tt>ruby script/server</tt> (run with --help for options) 
     312. Go to http://localhost:3000/ and get "Welcome aboard: You’re riding the Rails!" 
     323. Follow the guidelines to start developing your application 
    3433 
     34 
     35== Web servers 
     36 
     37Rails uses the built-in web server in Ruby called WEBrick by default, so you don't 
     38have to install or configure anything to play around.  
     39 
     40If you have lighttpd installed, though, it'll be used instead when running script/server. 
     41It's considerably faster than WEBrick and suited for production use, but requires additional 
     42installation and currently only works well on OS X/Unix (Windows users are encouraged 
     43to start with WEBrick). We recommend version 1.4.11 and higher. You can download it from 
     44http://www.lighttpd.net. 
     45 
     46If you want something that's halfway between WEBrick and lighttpd, we heartily recommend 
     47Mongrel. It's a Ruby-based web server with a C-component (so it requires compilation) that 
     48also works very well with Windows. See more at http://mongrel.rubyforge.org/. 
     49 
     50But of course its also possible to run Rails with the premiere open source web server Apache. 
     51To get decent performance, though, you'll need to install FastCGI. See 
     52http://wiki.rubyonrails.com/rails/pages/FastCGI for more information on FastCGI. 
    3553 
    3654== Example for Apache conf 
     
    103121application is running. You can inspect domain models, change values, and save to the 
    104122database. Starting the script without arguments will launch it in the development environment. 
    105 Passing an argument will specify a different environment, like <tt>console production</tt>. 
     123Passing an argument will specify a different environment, like <tt>script/console production</tt>. 
    106124 
    107125 
     
    139157 
    140158db 
    141   Contains the SQL dump of your development database.  db/migrate contains all 
     159  Contains the database schema in schema.rb.  db/migrate contains all 
    142160  the sequence of Migrations for your schema. 
    143161