diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-20 23:51:06 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-20 23:51:06 +0000 |
commit | 824558816acb7b930624e3cbd4dae8e7413e12f4 (patch) | |
tree | b5e522624a1dd4105853c1ab1bf582f09e9afa64 /railties/README | |
parent | 9ee1302f86e2b2f7cf0aec9fad8a89e05eaf9195 (diff) | |
download | rails-824558816acb7b930624e3cbd4dae8e7413e12f4.tar.gz rails-824558816acb7b930624e3cbd4dae8e7413e12f4.tar.bz2 rails-824558816acb7b930624e3cbd4dae8e7413e12f4.zip |
Added lighttpd config example and changed apache.log to less discriminating server.log
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@726 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/README')
-rw-r--r-- | railties/README | 32 |
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. |