提交 0ceb9150 编写于 作者: D David Heinemeier Hansson

Dont generate config/lighttpd.conf, will be done on first run of script/server

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2923 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 850b9c75
......@@ -158,12 +158,11 @@ 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")).result(binding)}
File.open("#{PKG_DESTINATION}/config/database.yml", 'w') {|f| f.write ERB.new(IO.read("configs/database.yml"), nil, '-').result(binding)}
cp "configs/routes.rb", "#{PKG_DESTINATION}/config/routes.rb"
cp "configs/apache.conf", "#{PKG_DESTINATION}/public/.htaccess"
cp "configs/lighttpd.conf", "#{PKG_DESTINATION}/config/lighttpd.conf"
cp "environments/boot.rb", "#{PKG_DESTINATION}/config/boot.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.
先完成此消息的编辑!
想要评论请 注册