lib/hanami/commands/server.rb
def detect_strategy!
        @strategy = :rackup
        if Hanami::Environment.new(@options).code_reloading?
          if shotgun_enabled?
            if fork_supported?
              @strategy = :shotgun
            else
              puts WARNING_MESSAGE
            end
          elsif entr_enabled?
            @strategy = :entr
          end
        end

        @strategy
      end
# Determine server strategy
#
# In order to decide the value, it looks up the following sources:
#
#   * CLI option `code_reloading`
#
# If those are missing it falls back to the following defaults:
#
#   * :shotgun for development and if Shotgun enabled and `fork supported
#   * :entr for development and Shotgun disabled but `entr` installed
#   * :rackup for all other cases
#
# @return [:shotgun,:entr, :rackup] the result of the check
#
# @since 0.8.0
#
# @see Hanami::Environment::CODE_RELOADING
Determine server strategy
In order to decide the value, it looks up the following sources.



If those are missing it falls back to the following defaults.

:shotgun for development and if Shotgun enabled and `fork supported
:entr for development and Shotgun disabled but `entr` installed
:rackup for all other cases
Determine server strategy In order to decide the value it looks up the following sources . If those are missing it falls back to the following defaults . : shotgun for development and if Shotgun enabled and ` fork supported : entr for development and Shotgun disabled but ` entr ` installed : rackup for all other cases
def detect_strategy!
        @strategy = :rackup
        if Hanami::Environment.new(@options).code_reloading?
          if shotgun_enabled?
            if fork_supported?
              @strategy = :shotgun
            else
              puts WARNING_MESSAGE
            end
          elsif entr_enabled?
            @strategy = :entr
          end
        end
        @strategy
      end
def detect_strategy! @strategy = :rackup if Hanami :: Environment . new ( @options ) . code_reloading? if shotgun_enabled? if fork_supported? @strategy = :shotgun else puts WARNING_MESSAGE end elsif entr_enabled? @strategy = :entr end end @strategy end
Determine server strategy
In order to decide the value, it looks up the following sources:
Determine server strategy In order to decide the value it looks up the following sources :
the result of the check
the result of the check
:shotgun,:entr, :rackup
since
None
see
None