aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands/server.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/commands/server.rb')
-rw-r--r--railties/lib/commands/server.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/railties/lib/commands/server.rb b/railties/lib/commands/server.rb
index 85e3a64d60..d91a395b81 100644
--- a/railties/lib/commands/server.rb
+++ b/railties/lib/commands/server.rb
@@ -25,5 +25,10 @@ else
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}"