diff options
author | Francis Irving <francis@mysociety.org> | 2009-12-03 14:18:06 +0000 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2009-12-03 14:18:06 +0000 |
commit | c132fb5904bed2827ad3ef1173cb12d9cf9f96a2 (patch) | |
tree | 75e5f4380eac498576c8443b5b4bde7e599bed5a /vendor/rails-2.0.2/railties/lib/commands/server.rb | |
parent | 2eabd0bf1d5c3d0cfa0f2883f6cfd65298ef4cd1 (diff) |
Remove old versions of Rails
Diffstat (limited to 'vendor/rails-2.0.2/railties/lib/commands/server.rb')
-rw-r--r-- | vendor/rails-2.0.2/railties/lib/commands/server.rb | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/vendor/rails-2.0.2/railties/lib/commands/server.rb b/vendor/rails-2.0.2/railties/lib/commands/server.rb deleted file mode 100644 index f84db9c04..000000000 --- a/vendor/rails-2.0.2/railties/lib/commands/server.rb +++ /dev/null @@ -1,39 +0,0 @@ -require 'active_support' -require 'fileutils' - -begin - require_library_or_gem 'fcgi' -rescue Exception - # FCGI not available -end - -begin - require_library_or_gem 'mongrel' -rescue Exception - # Mongrel not available -end - -server = case ARGV.first - when "lighttpd", "mongrel", "webrick" - ARGV.shift - else - if defined?(Mongrel) - "mongrel" - elsif RUBY_PLATFORM !~ /(:?mswin|mingw)/ && !silence_stderr { `lighttpd -version` }.blank? && defined?(FCGI) - "lighttpd" - else - "webrick" - end -end - -case server - when "webrick" - puts "=> Booting WEBrick..." - when "lighttpd" - puts "=> Booting lighttpd (use 'script/server webrick' to force WEBrick)" - when "mongrel" - puts "=> Booting Mongrel (use 'script/server webrick' to force WEBrick)" -end - -%w(cache pids sessions sockets).each { |dir_to_make| FileUtils.mkdir_p(File.join(RAILS_ROOT, 'tmp', dir_to_make)) } -require "commands/servers/#{server}" |