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

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
This commit is contained in:
Sam Stephenson 2006-03-12 17:04:33 +00:00
parent de37f7df4f
commit e3ea34f7d3
2 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,7 @@
*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]

View file

@ -25,5 +25,10 @@ else
puts "=> Booting lighttpd (use 'script/server webrick' to force WEBrick)"
end
silence_stderr { `rake tmp:create` }
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}"