lib/baleen/server.rb in baleen-0.0.2 vs lib/baleen/server.rb in baleen-0.0.9

- old
+ new

@@ -11,14 +11,14 @@ include Celluloid::IO finalizer :shutdown attr_accessor :containers - def initialize(host, port: 4243) - @base_url = "http://#{host}:#{port}" + def initialize(docker_host: "127.0.0.1", docker_port: 4243, port: 5533) + @base_url = "http://#{docker_host}:#{docker_port}" @docker = Docker::API.new(base_url: @base_url) @containers = @docker.containers - @server = TCPServer.new("127.0.0.1", 12345) + @server = TCPServer.new("0.0.0.0", port) async.run end def run loop { async.handle_connection @server.accept } \ No newline at end of file