Permalink
Browse files

When copying the config files, also transform and copy the default de…

…ploy.rb script

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2029 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 6050dfc commit 7f32e83f255bdb07e1385cf083888514d88641af @jamis jamis committed Aug 17, 2005
Showing with 7 additions and 0 deletions.
  1. +7 −0 railties/Rakefile
View
@@ -154,6 +154,13 @@ task :copy_configs do
cp "configs/database.yml", "#{PKG_DESTINATION}/config/database.yml"
cp "configs/routes.rb", "#{PKG_DESTINATION}/config/routes.rb"
+ require 'erb'
+ File.open("#{PKG_DESTINATION}/config/deploy.rb", "w") do |file|
+ template = File.read("configs/deploy.rb")
+ destination_root = PKG_DESTINATION
+ file.write ERB.new(template).result(binding)
+ end
+
cp "configs/apache.conf", "#{PKG_DESTINATION}/public/.htaccess"
cp "environments/environment.rb", "#{PKG_DESTINATION}/config/environment.rb"

0 comments on commit 7f32e83

Please sign in to comment.