diff options
Diffstat (limited to 'railties/Rakefile')
-rw-r--r-- | railties/Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index 8ac67c48cd..88454a5265 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -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" |