2014-12-25 29 views
2

我试图让我的Rails应用程序在生产模式下运行,但我一直有点困难。使Rails生产在80端口上运行

我使用乘客与Apache和运行Ubuntu 12.04。我配置并创建了我的生产数据库,并设置了乘客。情况如下:

$ rvmsudo passenger-status 
Version : 4.0.56 
Date : 2014-12-25 01:54:20 +0000 
Instance: 7264 
----------- General information ----------- 
Max pool size : 6 
Processes  : 0 
Requests in top-level queue : 0 

----------- Application groups ----------- 

然而,当我运行rails server -e production,它仍然在端口监听3000见下图:

$ rails server -e production 
=> Booting WEBrick 
=> Rails 4.2.0 application starting in production on http://localhost:3000 
=> Run `rails server -h` for more startup options 
=> Ctrl-C to shutdown server 
[2014-12-25 01:54:49] INFO WEBrick 1.3.1 
[2014-12-25 01:54:49] INFO ruby 2.1.5 (2014-11-13) [i686-linux] 
[2014-12-25 01:54:49] INFO WEBrick::HTTPServer#start: pid=7459 port=3000 

什么可能我会丢失让它在生产模式上的80端口侦听?

非常感谢提前。

+0

'轨服务器-e生产-p 80' –

回答