Skip to content
This repository has been archived by the owner on Jan 23, 2018. It is now read-only.

Commit

Permalink
Bind to 0.0.0.0 instead of localhost.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Nov 22, 2012
1 parent ba0b8cc commit d133016
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/receiver
Expand Up @@ -4,5 +4,5 @@ require "puma"
require "sokoban/receiver" require "sokoban/receiver"


s = Puma::Server.new(Sokoban::Receiver.new(ENV["REPO_GET_URL"])) s = Puma::Server.new(Sokoban::Receiver.new(ENV["REPO_GET_URL"]))
s.add_tcp_listener("localhost", (ENV["PORT"] || 5000)) s.add_tcp_listener("0.0.0.0", (ENV["PORT"] || 5000))
s.run.join s.run.join
2 changes: 1 addition & 1 deletion bin/web
Expand Up @@ -4,5 +4,5 @@ require "puma"
require "sokoban" require "sokoban"


s = Puma::Server.new(Sokoban::Proxy.new) s = Puma::Server.new(Sokoban::Proxy.new)
s.add_tcp_listener("localhost", (ENV["PORT"] || 5000)) s.add_tcp_listener("0.0.0.0", (ENV["PORT"] || 5000))
s.run.join s.run.join

0 comments on commit d133016

Please sign in to comment.