aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2005-10-16 17:10:34 +0000
committerNicholas Seckar <nseckar@gmail.com>2005-10-16 17:10:34 +0000
commit98c1735f0313a08563d8cb92fcbff48b2be906fc (patch)
tree4095d185dd7a15bf5692cc45c22d45cd24c25a8b /railties/Rakefile
parent50a02abd6de6a8c903360b8fb6c287860a50afcd (diff)
downloadrails-98c1735f0313a08563d8cb92fcbff48b2be906fc.tar.gz
rails-98c1735f0313a08563d8cb92fcbff48b2be906fc.tar.bz2
rails-98c1735f0313a08563d8cb92fcbff48b2be906fc.zip
Fix rake dev and related commands
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2653 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/Rakefile')
-rw-r--r--railties/Rakefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index 021190d472..07672415a2 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -156,7 +156,11 @@ task :copy_application do
end
task :copy_configs do
- cp "configs/database.yml", "#{PKG_DESTINATION}/config/database.yml"
+ app_name = "rails"
+ socket = nil
+ require 'erb'
+ File.open("#{PKG_DESTINATION}/config/database.yml", 'w') {|f| f.write ERB.new(IO.read("configs/database.yml")).result(binding)}
+
cp "configs/routes.rb", "#{PKG_DESTINATION}/config/routes.rb"
cp "configs/apache.conf", "#{PKG_DESTINATION}/public/.htaccess"