mirror of https://github.com/rails/rails
Update docs and index.html [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3992 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
eedd9d7604
commit
6f8c99fa34
|
@ -27,12 +27,30 @@ link:files/vendor/rails/actionpack/README.html.
|
|||
|
||||
== Getting started
|
||||
|
||||
1. Run the WEBrick servlet: <tt>ruby script/server</tt> (run with --help for options)
|
||||
...or if you have lighttpd installed: <tt>ruby script/lighttpd</tt> (it's faster)
|
||||
2. Go to http://localhost:3000/ and get "Congratulations, you've put Ruby on Rails!"
|
||||
3. Follow the guidelines on the "Congratulations, you've put Ruby on Rails!" screen
|
||||
1. Start the web server: <tt>ruby script/server</tt> (run with --help for options)
|
||||
2. Go to http://localhost:3000/ and get "Welcome aboard: You’re riding the Rails!"
|
||||
3. Follow the guidelines to start developing your application
|
||||
|
||||
|
||||
== Web servers
|
||||
|
||||
Rails uses the built-in web server in Ruby called WEBrick by default, so you don't
|
||||
have to install or configure anything to play around.
|
||||
|
||||
If you have lighttpd installed, though, it'll be used instead when running script/server.
|
||||
It's considerably faster than WEBrick and suited for production use, but requires additional
|
||||
installation and currently only works well on OS X/Unix (Windows users are encouraged
|
||||
to start with WEBrick). We recommend version 1.4.11 and higher. You can download it from
|
||||
http://www.lighttpd.net.
|
||||
|
||||
If you want something that's halfway between WEBrick and lighttpd, we heartily recommend
|
||||
Mongrel. It's a Ruby-based web server with a C-component (so it requires compilation) that
|
||||
also works very well with Windows. See more at http://mongrel.rubyforge.org/.
|
||||
|
||||
But of course its also possible to run Rails with the premiere open source web server Apache.
|
||||
To get decent performance, though, you'll need to install FastCGI. See
|
||||
http://wiki.rubyonrails.com/rails/pages/FastCGI for more information on FastCGI.
|
||||
|
||||
== Example for Apache conf
|
||||
|
||||
<VirtualHost *:80>
|
||||
|
@ -102,7 +120,7 @@ You can interact with the domain model by starting the console through script/co
|
|||
Here you'll have all parts of the application configured, just like it is when the
|
||||
application is running. You can inspect domain models, change values, and save to the
|
||||
database. Starting the script without arguments will launch it in the development environment.
|
||||
Passing an argument will specify a different environment, like <tt>console production</tt>.
|
||||
Passing an argument will specify a different environment, like <tt>script/console production</tt>.
|
||||
|
||||
|
||||
== Description of contents
|
||||
|
@ -138,7 +156,7 @@ components
|
|||
Self-contained mini-applications that can bundle together controllers, models, and views.
|
||||
|
||||
db
|
||||
Contains the SQL dump of your development database. db/migrate contains all
|
||||
Contains the database schema in schema.rb. db/migrate contains all
|
||||
the sequence of Migrations for your schema.
|
||||
|
||||
lib
|
||||
|
|
|
@ -230,8 +230,8 @@
|
|||
<h3>Browse the documentation</h3>
|
||||
<ul class="links">
|
||||
<li><a href="http://api.rubyonrails.org/">Rails API</a></li>
|
||||
<li><a href="http://www.ruby-doc.org/stdlib/">Ruby standard library</a></li>
|
||||
<li><a href="http://www.ruby-doc.org/core/">Ruby core</a></li>
|
||||
<li><a href="http://stdlib.rubyonrails.org/">Ruby standard library</a></li>
|
||||
<li><a href="http://corelib.rubyonrails.org/">Ruby core</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue