更改默认的Aptana IP地址

时间:2012-05-05 05:21:30

标签: ruby aptana aptana3

我想将默认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

1 个答案:

答案 0 :(得分:2)

使用命令行选项:

script/rails server -b 127.0.0.1 -p 80
相关问题