Bundle exec rails server --binding=0.0.0.0

After running this, nothing loads.

What do you see on your screen when you run that, how did you setup your dev environment?

btw use ./bin/unicorn not that.

4 个赞

请使用 UNICORN_BIND_ALL=1 bundle exec rails server 代替。

4 个赞

非常感谢。文档中处处都提到要使用 --binding=0.0.0.0,但只有在您的命令之后,我才成功连接到 localhost 之外。

1 个赞