aboutsummaryrefslogtreecommitdiffstats
path: root/railties/README
diff options
context:
space:
mode:
Diffstat (limited to 'railties/README')
-rw-r--r--railties/README32
1 files changed, 30 insertions, 2 deletions
diff --git a/railties/README b/railties/README
index 2c1c9a872d..cedb61ce21 100644
--- a/railties/README
+++ b/railties/README
@@ -49,7 +49,7 @@ link:files/vendor/actionpack/README.html.
<VirtualHost *:80>
ServerName rails
DocumentRoot /path/application/public/
- ErrorLog /path/application/log/apache.log
+ ErrorLog /path/application/log/server.log
<Directory /path/application/public/>
Options ExecCGI FollowSymLinks
@@ -65,9 +65,37 @@ through CGI, so no Apache restart is necessary for changes. All other requests
goes through FCGI (or mod_ruby) that requires restart to show changes.
+== Example for lighttpd conf (with FastCGI)
+
+server.port = 8080
+server.bind = "127.0.0.1"
+# server.event-handler = "freebsd-kqueue" # needed on OS X
+
+server.modules = ( "mod_rewrite", "mod_access", "mod_fastcgi" )
+
+server.indexfiles = ( "index.html" )
+url.rewrite = ( "^([^.]+)$" => "$1.html" )
+server.error-handler-404 = "/dispatch.fcgi" # change to dispatch.cgi to run CGI
+
+server.document-root = "/path/application/public"
+server.errorlog = "/path/application/log/server.log"
+
+fastcgi.server = ( ".fcgi" =>
+ ( "localhost" =>
+ (
+ "min-procs" => 1,
+ "max-procs" => 5,
+ "socket" => "/tmp/application.fcgi.socket",
+ "bin-path" => "/path/application/public/dispatch.fcgi",
+ "bin-environment" => ( "RAILS_ENV" => "development" )
+ )
+ )
+)
+
+
== Debugging Rails
-Have "tail -f" commands running on both the apache.log, production.log, and
+Have "tail -f" commands running on both the server.log, production.log, and
test.log files. Rails will automatically display debugging and runtime
information to these files. Debugging info will also be shown in the browser
on requests from 127.0.0.1.