From 68e35f13719934adc8b15e8108cb607ace50197f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 3 Jun 2006 22:22:50 +0000 Subject: 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 --- railties/lib/commands/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/commands/server.rb') diff --git a/railties/lib/commands/server.rb b/railties/lib/commands/server.rb index 82a3e1083f..0857a5756a 100644 --- a/railties/lib/commands/server.rb +++ b/railties/lib/commands/server.rb @@ -26,5 +26,5 @@ else 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}" -- cgit v1.2.3