diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-13 23:25:02 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-13 23:25:02 +0000 |
commit | 9aeddc553874ddfd9a2527e1e21127c2a323aaee (patch) | |
tree | 884509150b6aad1a10149d948731ac473054e1ae | |
parent | 6b70c799f829f93fd8d0355af0e6488d2c1102ab (diff) | |
download | rails-9aeddc553874ddfd9a2527e1e21127c2a323aaee.tar.gz rails-9aeddc553874ddfd9a2527e1e21127c2a323aaee.tar.bz2 rails-9aeddc553874ddfd9a2527e1e21127c2a323aaee.zip |
script/server creates the tmp/pids directory. Closes #6204.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5103 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-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}" |