提交 7f32e83f 编写于 作者: J Jamis Buck

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
上级 6050dfc4
...@@ -154,6 +154,13 @@ task :copy_configs do ...@@ -154,6 +154,13 @@ task :copy_configs do
cp "configs/database.yml", "#{PKG_DESTINATION}/config/database.yml" cp "configs/database.yml", "#{PKG_DESTINATION}/config/database.yml"
cp "configs/routes.rb", "#{PKG_DESTINATION}/config/routes.rb" 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 "configs/apache.conf", "#{PKG_DESTINATION}/public/.htaccess"
cp "environments/environment.rb", "#{PKG_DESTINATION}/config/environment.rb" cp "environments/environment.rb", "#{PKG_DESTINATION}/config/environment.rb"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册