From db045dbbf60b53dbe013ef25554fd013baf88134 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 24 Nov 2004 01:04:44 +0000 Subject: Initial git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/doc/README_FOR_APP | 2 + railties/doc/apache_protection | 3 ++ railties/doc/index.html | 94 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 railties/doc/README_FOR_APP create mode 100644 railties/doc/apache_protection create mode 100644 railties/doc/index.html (limited to 'railties/doc') diff --git a/railties/doc/README_FOR_APP b/railties/doc/README_FOR_APP new file mode 100644 index 0000000000..ac6c149122 --- /dev/null +++ b/railties/doc/README_FOR_APP @@ -0,0 +1,2 @@ +Use this README file to introduce your application and point to useful places in the API for learning more. +Run "rake appdoc" to generate API documentation for your models and controllers. \ No newline at end of file diff --git a/railties/doc/apache_protection b/railties/doc/apache_protection new file mode 100644 index 0000000000..37676c2c63 --- /dev/null +++ b/railties/doc/apache_protection @@ -0,0 +1,3 @@ +Order Deny,Allow +Deny from all +Allow from 127.0.0.1 \ No newline at end of file diff --git a/railties/doc/index.html b/railties/doc/index.html new file mode 100644 index 0000000000..57e25b75fa --- /dev/null +++ b/railties/doc/index.html @@ -0,0 +1,94 @@ + + + Rails: Welcome on board + + + + +

Congratulations, you're on Rails!

+ +

+ You've succesfully configured your web server to point at this Rails application. +

+ +

Before you move on, verify that the following conditions have been met:

+ +
    +
  1. The log directory and the empty log files must be writable to the web server (chmod -R 777 log). +
  2. + The shebang line in the public/dispatch* files must reference your Ruby installation.
    + You might need to change it to #!/usr/bin/env ruby or point directly at the installation. +
  3. +
  4. + Rails on Apache needs to have the cgi handler and mod_rewrite enabled.
    + Somewhere in your httpd.conf, you should have:
    + AddHandler cgi-script .cgi
    + LoadModule rewrite_module libexec/httpd/mod_rewrite.so
    + AddModule mod_rewrite.c +
  5. +
+ +

Take the following steps to get started:

+ +
    +
  1. Create empty production and test databases for your application.
    + Warning: Don't point your test database at your production database, it'll destroy the latter on test runs! +
  2. Edit config/database.yml with your database settings. +
  3. Create a new controller using the script/new_controller generator
    + Help: Run with no arguments for documentation +
  4. Create a new model using the script/new_model generator
    + Help: Run with no arguments for documentation +
  5. See all the tests run and fail by running rake. +
  6. Develop your Rails application! +
  7. Setup FastCGI or mod_ruby to get production-level performance +
+ +

+ Having problems getting up and running? First try debugging it yourself by looking at the log files.
Then try the friendly Rails + community on IRC (howto IRC). It's on FreeNET in channel #rubyonrails. +

+ +
+

Rails Online

+ + +
+ +
+

Beyond CGI

+ + +
+ + + \ No newline at end of file -- cgit v1.2.3