diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-11-24 19:50:09 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-11-24 19:50:09 +0100 |
commit | 1cbdd53bd383e7d1dc34cad50c22ff5a330bbf91 (patch) | |
tree | 4854eec0514d44e3134af77a80b8ca73b4c601d7 | |
parent | b7568e77d79cba9202b961cbe2a822b8b6b34bb0 (diff) | |
download | rails-1cbdd53bd383e7d1dc34cad50c22ff5a330bbf91.tar.gz rails-1cbdd53bd383e7d1dc34cad50c22ff5a330bbf91.tar.bz2 rails-1cbdd53bd383e7d1dc34cad50c22ff5a330bbf91.zip |
Add a rake task to generate dispatchers : rake rails:generate_dispatchers
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/lib/tasks/framework.rake | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index 1dba7a009e..a586940f22 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -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] diff --git a/railties/lib/tasks/framework.rake b/railties/lib/tasks/framework.rake index 4cf174b15b..df080e94ac 100644 --- a/railties/lib/tasks/framework.rake +++ b/railties/lib/tasks/framework.rake @@ -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 |