rchampourlier / guard-shotgun

Guard gem for Sinatra (shotgun-like)
MIT License
11 stars 9 forks source link

My app is invisible to anything not on localhost #4

Closed davesag closed 11 years ago

davesag commented 11 years ago

Hi

I've configured my guardfile to fire up my server but the server is invisible from machines other that 'localhost'.

in my guardfile

guard 'shotgun' do
  watch('server.rb')
end

supposedly passing :host => '0.0.0.0' as a parameter to shotgun will allow it to serve out to anyone, but I tried

guard 'shotgun', :host => '0.0.0.0' do
  watch('server.rb')
end

and it doesn't work.

Any suggestions?

davesag commented 11 years ago

I've fixed this in my server.rb as follows

MyServer.run!({:server => 'thin', :bind => '0.0.0.0', :port => 5000})

Would be nice to know if this can be achieved within the guardfile though.