mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
ef3e1928a1
commit
5f73ba11ce
3 changed files with 8 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
||||||
*SVN*
|
*SVN*
|
||||||
|
|
||||||
|
* 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]
|
||||||
|
|
||||||
* Added plugin generator to create a stub structure for a new plugin in vendor/plugins (see "script/generate plugin" for help) [DHH]
|
* Added plugin generator to create a stub structure for a new plugin in vendor/plugins (see "script/generate plugin" for help) [DHH]
|
||||||
|
|
||||||
* Added app/services as a default dir in the Rails skeleton and to the load path. Use it to keep classes like MaintenanceService and PaymentGateway [DHH]
|
* Added app/services as a default dir in the Rails skeleton and to the load path. Use it to keep classes like MaintenanceService and PaymentGateway [DHH]
|
||||||
|
|
|
@ -38,7 +38,7 @@ HTML_FILES = %w( 404.html 500.html index.html robots.txt favicon.ico
|
||||||
javascripts/prototype.js javascripts/scriptaculous.js
|
javascripts/prototype.js javascripts/scriptaculous.js
|
||||||
javascripts/effects.js javascripts/dragdrop.js javascripts/controls.js
|
javascripts/effects.js javascripts/dragdrop.js javascripts/controls.js
|
||||||
javascripts/slider.js )
|
javascripts/slider.js )
|
||||||
BIN_FILES = %w( breakpointer console destroy generate performance/benchmarker performance/profiler process/reaper process/spawner process/spinner runner server )
|
BIN_FILES = %w( breakpointer console destroy generate performance/benchmarker performance/profiler process/reaper process/spawner process/spinner runner server lighttpd )
|
||||||
|
|
||||||
VENDOR_LIBS = %w( actionpack activerecord actionmailer activesupport actionwebservice railties )
|
VENDOR_LIBS = %w( actionpack activerecord actionmailer activesupport actionwebservice railties )
|
||||||
|
|
||||||
|
@ -164,6 +164,7 @@ task :copy_configs do
|
||||||
cp "configs/routes.rb", "#{PKG_DESTINATION}/config/routes.rb"
|
cp "configs/routes.rb", "#{PKG_DESTINATION}/config/routes.rb"
|
||||||
|
|
||||||
cp "configs/apache.conf", "#{PKG_DESTINATION}/public/.htaccess"
|
cp "configs/apache.conf", "#{PKG_DESTINATION}/public/.htaccess"
|
||||||
|
cp "configs/lighttpd.conf", "#{PKG_DESTINATION}/config/lighttpd.conf"
|
||||||
|
|
||||||
cp "environments/boot.rb", "#{PKG_DESTINATION}/config/boot.rb"
|
cp "environments/boot.rb", "#{PKG_DESTINATION}/config/boot.rb"
|
||||||
cp "environments/environment.rb", "#{PKG_DESTINATION}/config/environment.rb"
|
cp "environments/environment.rb", "#{PKG_DESTINATION}/config/environment.rb"
|
||||||
|
|
|
@ -37,8 +37,9 @@ class AppGenerator < Rails::Generator::Base
|
||||||
:app_name => File.basename(File.expand_path(@destination_root)),
|
:app_name => File.basename(File.expand_path(@destination_root)),
|
||||||
:socket => @socket
|
:socket => @socket
|
||||||
}
|
}
|
||||||
m.template "configs/routes.rb", "config/routes.rb"
|
m.template "configs/routes.rb", "config/routes.rb"
|
||||||
m.template "configs/apache.conf", "public/.htaccess"
|
m.template "configs/apache.conf", "public/.htaccess"
|
||||||
|
m.template "configs/lighttpd.conf", "config/lighttpd.conf"
|
||||||
|
|
||||||
# Environments
|
# Environments
|
||||||
m.file "environments/boot.rb", "config/boot.rb"
|
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"
|
m.file "environments/test.rb", "config/environments/test.rb"
|
||||||
|
|
||||||
# Scripts
|
# 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
|
m.file "bin/#{file}", "script/#{file}", script_options
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue