我想将默认IP更改为127.0.0.1或localhost,而不是脚本/ 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
答案 0 :(得分:2)
使用命令行选项:
script/rails server -b 127.0.0.1 -p 80