diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-28 17:53:47 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-28 17:53:47 +0000 |
commit | 5f73ba11ceba20408facbd3240bea19682cd09e1 (patch) | |
tree | f895fa969244ba6508ff047a1ad353b04551034c /railties/lib/rails_generator | |
parent | ef3e1928a1416a88b9ccee9e28d924f2fb169d8b (diff) | |
download | rails-5f73ba11ceba20408facbd3240bea19682cd09e1.tar.gz rails-5f73ba11ceba20408facbd3240bea19682cd09e1.tar.bz2 rails-5f73ba11ceba20408facbd3240bea19682cd09e1.zip |
Added default lighttpd config in config/lighttpd.conf and added a default runner for lighttpd in script/lighttpd (works like script/server, but using lighttpd and FastCGI) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2786 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator')
-rw-r--r-- | railties/lib/rails_generator/generators/applications/app/app_generator.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/railties/lib/rails_generator/generators/applications/app/app_generator.rb b/railties/lib/rails_generator/generators/applications/app/app_generator.rb index 79bb808d7b..65d6afd9ab 100644 --- a/railties/lib/rails_generator/generators/applications/app/app_generator.rb +++ b/railties/lib/rails_generator/generators/applications/app/app_generator.rb @@ -37,8 +37,9 @@ class AppGenerator < Rails::Generator::Base :app_name => File.basename(File.expand_path(@destination_root)), :socket => @socket } - m.template "configs/routes.rb", "config/routes.rb" - m.template "configs/apache.conf", "public/.htaccess" + m.template "configs/routes.rb", "config/routes.rb" + m.template "configs/apache.conf", "public/.htaccess" + m.template "configs/lighttpd.conf", "config/lighttpd.conf" # Environments m.file "environments/boot.rb", "config/boot.rb" @@ -48,7 +49,7 @@ class AppGenerator < Rails::Generator::Base m.file "environments/test.rb", "config/environments/test.rb" # Scripts - %w( breakpointer console destroy generate performance/benchmarker performance/profiler process/reaper process/spawner process/spinner runner server ).each do |file| + %w( breakpointer console destroy generate performance/benchmarker performance/profiler process/reaper process/spawner process/spinner runner server lighttpd ).each do |file| m.file "bin/#{file}", "script/#{file}", script_options end |