2014-12-25 66 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' –

回答