簡體   English   中英

rails Phusion乘客apache和什么關系?

[英]what is the relationship between rails Phusion Passenger apache?

我知道rails是ruby框架,而apache是​​rails的服務器.Phusion Passenger的用途是什么? 是服務器還是部署工具?

現在,我正在嘗試在服務器上部署我的rails應用程序,而我不知道如何使用Phusion Passenger和apache來使我的應用程序運行):

提前致謝

Phusion Passenger只是一個apache mod,需要在您的應用程序正在使用的虛擬主機中激活,告訴apache使用哪個版本的Rails以及其他類似配置。 因此,基本上,Apache使用Passenger運行Ruby on Rails應用程序。

您必須閱讀以下內容才能安裝Passenger: https ://www.phusionpassenger.com/download(只需稍作調整即可閱讀開放源代碼版本文檔)。

為了設置它並為您的應用程序之一運行它,它是: http : //www.modrails.com/documentation/Users%20guide%20Apache.html#_configuring_phusion_passenger所以,是的,這里有很多文本,但是您不需要幸運地閱讀所有內容。

此外,在安裝時,Passenger會准確告訴您在虛擬主機配置中要寫的內容,並且基本上只有兩行文字。 :)

在大多數情況下,如果您的虛擬主機看起來像這樣:

<VirtualHost *:80>
    ServerName www.wsgiapp.com
    DocumentRoot /webapps/wsgiapp/public
    <Directory /webapps/wsgiapp/public>
        Allow from all
        Options -MultiViews
    </Directory>
</VirtualHost>

安裝后,乘客會告訴您寫這樣的內容:

<VirtualHost *:80>
    ServerName www.wsgiapp.com
    DocumentRoot /webapps/wsgiapp/public

    PassengerRuby /usr/bin/ruby
    PassengerRoot /somewhere/passenger/x.x.x

    <Directory /webapps/wsgiapp/public>
        Allow from all
        Options -MultiViews
    </Directory>
</VirtualHost>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM