0

我想将默认 IP 更改为 127.0.0.1 或 localhost 而不是 script/rails 服务器http://0.0.0.0:3000

我如何在 Aptana 3 中做到这一点?

script/rails server
=> Booting WEBrick
=> Rails 3.2.3 application starting in development on **http://0.0.0.0:3000**
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2012-05-04 21:41:46] INFO  WEBrick 1.3.1
[2012-05-04 21:41:46] INFO  ruby 1.9.2 (2011-07-09) [i386-mingw32]
[2012-05-04 21:41:46] INFO  WEBrick::HTTPServer#start: pid=9588 port=3000
4

1 回答 1

2

使用命令行选项:

script/rails server -b 127.0.0.1 -p 80
于 2012-05-05T05:25:21.320 回答