aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2005-08-17 17:22:03 +0000
committerJamis Buck <jamis@37signals.com>2005-08-17 17:22:03 +0000
commit7f32e83f255bdb07e1385cf083888514d88641af (patch)
tree900b6bcb2187d23ae25a53905960ad3647a23da0 /railties/Rakefile
parent6050dfc46b8ec70913d73e154926b9878c8f83c4 (diff)
downloadrails-7f32e83f255bdb07e1385cf083888514d88641af.tar.gz
rails-7f32e83f255bdb07e1385cf083888514d88641af.tar.bz2
rails-7f32e83f255bdb07e1385cf083888514d88641af.zip
When copying the config files, also transform and copy the default deploy.rb script
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2029 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/Rakefile')
-rw-r--r--railties/Rakefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index b681f30d5b..9e50149a1d 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -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"