Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #5014: server.rb.diff

File server.rb.diff, 0.5 kB (added by elliot@townx.org, 2 years ago)

Add RAILS_ROOT when generating tmp directories

  • railties/lib/commands/server.rb

    old new  
    2626  puts "=> Booting lighttpd (use 'script/server webrick' to force WEBrick)" 
    2727end 
    2828 
    29 FileUtils.mkdir_p(%w( tmp/sessions tmp/cache tmp/sockets )) 
     29['sessions', 'cache', 'sockets'].each { |dir_to_make| FileUtils.mkdir_p(File.join(RAILS_ROOT, 'tmp', dir_to_make)) } 
    3030require "commands/servers/#{server}"