Accessing a rails test server remotely
Maybe I'm missing something simple here, but when I run "ruby script/server", I can access it through localhost, but not remotely. Is there something simple I can do to access 开发者_如何转开发it remotely without doing some fancy deployment?
You can pass -b option which can bind to an IP address. Suppose your test server IP address is 192.168.1.10
script/server -b 192.168.1.10
try:
bin/rails s -b <YOUR_IP>
精彩评论