method

print_boot_information

Importance_0
v4.1.8 - Show latest stable - 0 notes - Class: Rails::Server
print_boot_information() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/commands/server.rb, line 110
      def print_boot_information
        url = "#{options[:SSLEnable] ? 'https' : 'http'}://#{options[:Host]}:#{options[:Port]}"
        puts "=> Booting #{ActiveSupport::Inflector.demodulize(server)}"
        puts "=> Rails #{Rails.version} application starting in #{Rails.env} on #{url}"
        puts "=> Run `rails server -h` for more startup options"

        if options[:Host].to_s.match(/0\.0\.0\.0/)
          puts "=> Notice: server is listening on all interfaces (#{options[:Host]}). Consider using 127.0.0.1 (--binding option)"
        end

        puts "=> Ctrl-C to shutdown server" unless options[:daemonize]
      end
Register or log in to add new notes.