Cloud 9运行rails服务器,但未连接到http:// localhost:3000

时间:2016-03-28 06:07:00

标签: ruby-on-rails

我正在学习Ruby on Rails:第二册我在Cloud9中设置了所有内容,输入rails server我得到了这个输出,应用程序的页面显示它没有运行,我&# 39;我不知道在服务器运行后我应该看到什么

=> Booting WEBrick

=> Rails 4.2.6 application starting in development on http://localhost:3000

=> Run `rails server -h` for more startup options

=> Ctrl-C to shutdown server

[2016-03-28 05:35:18] INFO  WEBrick 1.3.1

[2016-03-28 05:35:18] INFO  ruby 2.3.0 (2015-12-25) [x86_64-linux]

[2016-03-28 05:35:18] INFO  WEBrick::HTTPServer#start: pid=22795 port=3000

1 个答案:

答案 0 :(得分:0)

尝试使用以下命令运行服务器:

rails s -b $IP -p $PORT