Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Setting a host 0.0.0.0 doesn't work #121

Open
rustamgasanov opened this issue Nov 10, 2015 · 4 comments
Open

Setting a host 0.0.0.0 doesn't work #121

rustamgasanov opened this issue Nov 10, 2015 · 4 comments

Comments

@rustamgasanov
Copy link

If you specify the host like this:

development:
  server: "http://0.0.0.0:9292/faye"
  secret_token: "secret"

Then start a server with either rackup or thin, both will start it incorrectly:

thin -C config/private_pub.yml -e development start
Using rack adapter
Thin web server (v1.6.4 codename Gob Bluth)
Maximum connections set to 1024
Listening on 0.0.0.0:3000, CTRL+C to stop

rackup private_pub.ru -s thin -E development
Thin web server (v1.6.4 codename Gob Bluth)
Maximum connections set to 1024
Listening on localhost:9292, CTRL+C to stop

Of course I can override host/port for both, but seems like the issue described it's not a desired behaviour.

@eduardobarbiero
Copy link

I'm with the same problem +1

@eduardobarbiero
Copy link

@rustamagasanov test as follows

bundle exec thin start -R private_pub.ru -e production -a 0.0.0.0 -p 9292

Here works fine!

@rustamgasanov
Copy link
Author

@eduardobarbiero I know, thats why I wrote, that I can override host/port for both manually, but it's not a desired behaviour. I described the ways for workaround if someone is interested:
http://stackoverflow.com/questions/33582812/rails-app-cant-connect-to-private-pub-on-vagrant/33641361#33641361

@teodor-pripoae
Copy link

The server key in config is not for the address to listen, but used by Faye client to send messages to the server. (PrivatePub.publish)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants