Create temporary dirs relative to RAILS_ROOT when running script/server #5014 [elliot@townx.org]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4426 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 c5ec16e5
*SVN*
* Create temporary dirs relative to RAILS_ROOT when running script/server #5014 [elliot@townx.org]
* Minor tweak to dispatcher to use recognize instead of recognize!, as per the new routes. [Jamis Buck]
* Make "script/plugin install" work with svn+ssh URLs. [Sam Stephenson]
......
......@@ -26,5 +26,5 @@
puts "=> Booting lighttpd (use 'script/server webrick' to force WEBrick)"
end
FileUtils.mkdir_p(%w( tmp/sessions tmp/cache tmp/sockets ))
['sessions', 'cache', 'sockets'].each { |dir_to_make| FileUtils.mkdir_p(File.join(RAILS_ROOT, 'tmp', dir_to_make)) }
require "commands/servers/#{server}"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册