Sha256: 3327b093d869ccfefce7e4ef0680c72f4a678598d5c08dc922265f5c74b01eab

Contents?: true

Size: 618 Bytes

Versions: 7

Compression:

Stored size: 618 Bytes

Contents

require 'active_support'
require 'fileutils'

begin
  require_library_or_gem 'fcgi'
rescue Exception
  # FCGI not available
end

server = case ARGV.first
  when "lighttpd"
    ARGV.shift
  when "webrick"
    ARGV.shift
  else
    if RUBY_PLATFORM !~ /mswin/ && !silence_stderr { `lighttpd -version` }.blank? && defined?(FCGI)
      "lighttpd"
    else
      "webrick"
    end
end

if server == "webrick"
  puts "=> Booting WEBrick..."
else
  puts "=> Booting lighttpd (use 'script/server webrick' to force WEBrick)"
end

FileUtils.mkdir_p(%w( tmp/sessions tmp/cache tmp/sockets ))
require "commands/servers/#{server}"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails-1.1.1 lib/commands/server.rb
rails-1.1.0 lib/commands/server.rb
rails-1.1.2 lib/commands/server.rb
rails-1.1.4 lib/commands/server.rb
rails-1.1.6 lib/commands/server.rb
rails-1.1.3 lib/commands/server.rb
rails-1.1.5 lib/commands/server.rb