Sha256: 7c992d7f4330d0c381699a4e2d2872d5b73355d9cd39f01b2ba39313e297fb2a
Contents?: true
Size: 568 Bytes
Versions: 11
Compression:
Stored size: 568 Bytes
Contents
module Soaring class Runner def initialize(options) @options = options end def run(project_folder) environment = 'development' environment = @options[:environment] if @options[:environment] port = 9393 port = @options[:port] if @options[:port] bind_address = '0.0.0.0' rackup_parameters = "-E #{environment} ./config.ru -p #{port} --host #{bind_address}" puts "starting rackup with parameters #{rackup_parameters}" if @options[:verbose] `bundle exec rackup #{rackup_parameters}` end end end
Version data entries
11 entries across 11 versions & 1 rubygems