提交 e3ea34f7 编写于 作者: S Sam Stephenson

Use the Rake API instead of shelling out to create the tmp directory in commands/server.rb

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 de37f7df
*SVN*
* Use the Rake API instead of shelling out to create the tmp directory in commands/server.rb. [Chad Fowler]
* Added a backtrace to the evil WSOD (White Screen of Death). Closes #4073. TODO: Clearer exceptions [Rick Olson]
* Added tracking of database and framework versions in script/about #4088 [charles.gerungan@gmail.com/Rick Olson]
......
......@@ -25,5 +25,10 @@
puts "=> Booting lighttpd (use 'script/server webrick' to force WEBrick)"
end
silence_stderr { `rake tmp:create` }
require "commands/servers/#{server}"
\ No newline at end of file
require 'rake'
load File.join(File.dirname(__FILE__), "..", "tasks", "tmp.rake")
begin
Rake::Task['tmp:create'].execute
rescue Errno::EEXIST => e
end
require "commands/servers/#{server}"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册