Skip to content

Commit

Permalink
Switch host+port for bind so we can enable the use of unix sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarranza committed Oct 13, 2015
1 parent 90cc687 commit da2f3d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/gemstash/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ class Configuration
:cache_type => "memory",
:base_path => File.expand_path("~/.gemstash"),
:db_adapter => "sqlite3",
:host => "0.0.0.0",
:port => 9292,
:bind => "tcp://0.0.0.0:9292",
:rubygems_url => "https://www.rubygems.org",
:logfile => "server.log"
}.freeze
Expand Down
2 changes: 1 addition & 1 deletion lib/gemstash/puma.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "gemstash"

threads 0, 16
bind "tcp://#{Gemstash::Env.current.config[:host]}:#{Gemstash::Env.current.config[:port]}"
bind "#{Gemstash::Env.current.config[:bind]}"
workers 1
rackup Gemstash::Env.current.rackup

0 comments on commit da2f3d4

Please sign in to comment.