1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Make release rake work on 1.8.4

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4077 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2006-03-28 02:10:51 +00:00
parent b55fc9e85a
commit 3e734490c6

View file

@ -84,7 +84,7 @@ end
# Make directory structure ----------------------------------------------------------------
def make_dest_dirs(dirs, path = nil)
mkdir_p dirs.map { |dir| File.join(PKG_DESTINATION, path, dir) }
mkdir_p dirs.map { |dir| File.join(PKG_DESTINATION, path.to_s, dir) }
end
desc "Make the directory structure for the new Rails application"
@ -163,7 +163,7 @@ task :copy_configs do
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"), nil, '-').result(binding)}
File.open("#{PKG_DESTINATION}/config/database.yml", 'w') {|f| f.write ERB.new(IO.read("configs/databases/mysql.yml"), nil, '-').result(binding)}
cp "configs/routes.rb", "#{PKG_DESTINATION}/config/routes.rb"