开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜