web server availability is not enabled by default via Rails 4.2 #61

Closed
st-atila opened this Issue Feb 13, 2015 · 2 comments

Projects

None yet

2 participants

@st-atila

3.3 Default Host for rails server
Due to a change in Rack, rails server now listens on localhost instead of 0.0.0.0 by default. ..
However, with this change you will no longer be able to access the Rails server from a different machine... In such cases, please start the server with 'rails server -b 0.0.0.0' to restore the old behavior.
from- http://edgeguides.rubyonrails.org/4_2_release_notes.html .

I have successfully edited the Procfile like:
`web: bundle exec rails server -b 0.0.0.0 -p 80 -e ${RAILS_ENV:-production``

Thank You, for making this project!

@nilbus
Owner
nilbus commented Feb 13, 2015

Good catch! Would you be interested in doing a pull request to share that
change? Otherwise I can do it.

Edward

On Thursday, February 12, 2015, st-atila notifications@github.com wrote:

3.3 Default Host for rails server
Due to a change in Rack, rails server now listens on localhost instead of
0.0.0.0 by default. ..
However, with this change you will no longer be able to access the Rails
server from a different machine... In such cases, please start the server
with 'rails server -b 0.0.0.0' to restore the old behavior.
from- http://edgeguides.rubyonrails.org/4_2_release_notes.html .

I have successfully edited the Procfile like:
web: bundle exec rails server -b 0.0.0.0 -p 80 -e ${RAILS_ENV:-production`

Thank You, for making this project!


Reply to this email directly or view it on GitHub
#61.

@st-atila

Thank you, however, I would rather, at this time, if you would be so kind as to do it; this would be my first pull request (I am only just now reading about it, and I don't believe I have enough time to digest the concepts). Thanks.

@nilbus nilbus added a commit that closed this issue Feb 13, 2015
@nilbus Bind to all network interfaces
This default changed from 0.0.0.0 to localhost in Rails 4.2.

Fixes #61
afb1371
@nilbus nilbus closed this in afb1371 Feb 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment