diff options
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/lib/commands/server.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index da9a20fc60..b11a91f88d 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* script/server creates the tmp/pids directory. #6204 [jonathan] + * Fix script/console --sandbox for internal transactions changes. #5738 [chris@octopod.info, charles.gerungan@gmail.com] * Remove the uncanny default of adding all app/models/*/ directories to the load path. This change will break application which expect the current behavior. As diff --git a/railties/lib/commands/server.rb b/railties/lib/commands/server.rb index 94208f7575..23ad9de324 100644 --- a/railties/lib/commands/server.rb +++ b/railties/lib/commands/server.rb @@ -35,5 +35,5 @@ case server puts "=> Booting Mongrel (use 'script/server webrick' to force WEBrick)" end -['sessions', 'cache', 'sockets'].each { |dir_to_make| FileUtils.mkdir_p(File.join(RAILS_ROOT, 'tmp', dir_to_make)) } +%w(cache pids sessions sockets).each { |dir_to_make| FileUtils.mkdir_p(File.join(RAILS_ROOT, 'tmp', dir_to_make)) } require "commands/servers/#{server}" |