mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add a rake task to generate dispatchers : rake rails:generate_dispatchers
This commit is contained in:
parent
b7568e77d7
commit
1cbdd53bd3
2 changed files with 10 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
*2.3.0 [Edge]*
|
||||
|
||||
* Add a rake task to generate dispatchers : rake rails:generate_dispatchers [Pratik]
|
||||
|
||||
* "rails <app>" will not generate public/dispatch.cgi/fcgi/rb files by default now. Please use "--with-dispatchers" option if you need them. [Yaroslav Markin, Pratik Naik]
|
||||
|
||||
* Added rake rails:update:application_controller to renamed application.rb to application_controller.rb -- included in rake rails:update so upgrading to 2.3 will automatically trigger it #1439 [kastner]
|
||||
|
|
|
@ -124,5 +124,13 @@ namespace :rails do
|
|||
puts "#{old_style} has been renamed to #{new_style}, update your SCM as necessary"
|
||||
end
|
||||
end
|
||||
|
||||
desc "Generate dispatcher files in RAILS_ROOT/public"
|
||||
task :generate_dispatchers do
|
||||
require 'railties_path'
|
||||
FileUtils.cp(RAILTIES_PATH + '/dispatches/dispatch.fcgi', RAILS_ROOT + '/public/dispatch.fcgi')
|
||||
FileUtils.cp(RAILTIES_PATH + '/dispatches/dispatch.rb', RAILS_ROOT + '/public/dispatch.rb')
|
||||
FileUtils.cp(RAILTIES_PATH + '/dispatches/dispatch.rb', RAILS_ROOT + '/public/dispatch.cgi')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue