lib/soaring/runner.rb in soaring-0.0.3 vs lib/soaring/runner.rb in soaring-0.1.0

- old
+ new

@@ -4,13 +4,17 @@ @options = options end def run(project_folder) environment = 'development' + environment = @options[:environment] if @options[:environment] port = 9393 - binding_address = '0.0.0.0' -# exec("export SOAR_TECH=debug; export RACK_ENV=development; ./run.sh") - `bundle exec rackup -E #{environment} ./config.ru -p #{port} --host #{binding_address}` + 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