2011-09-09 92 views
3

我很新的紅寶石環境.. 我想在在Windows XAMPP阿帕奇Rails應用程序XP,而不是它內置的Ruby on Rails的使用WEBrick服務器運行我的紅寶石......如何在windows xp的xampp中部署ruby on rails應用程序?

我試了一下在apache- http.conf中添加虛擬主機文件

當我運行我的應用我能看到「歡迎國外」 ......

但是當我點擊的「關於應用程序的環境「 它顯示如下的錯誤:

Object not found! 

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. 

If you think this is a server error, please contact the webmaster. 
Error 404 
localhost 
9/9/2011 10:47:31 AM 
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 
+0

你想在Apache而不是WebRick上運行的具體原因是什麼? – Mchl

+0

是的。這是我的客戶要求 – HONy

+0

好的。我認爲這是爲了開發而不是生產 – Mchl

回答

0

要使用apache部署您的應用程序,您需要使用phusion乘客http://www.modrails.com 網絡上有很多操作方法,並且文檔足以讓服務正常運行。

0

這意味着您的Ruby on Rails服務器是不運行。 您需要先運行您的服務器。

我做了一個批處理文件,啓動server.bat包含

d: 
cd "D:\Ruby\Web\rails1" 
"C:\RailsInstaller\Ruby1.9.3\bin\ruby.exe" script\rails server 

然後檢查正在運行的服務器的端口號,

command prompt

如此以來,端口上的截圖爲10524,你可以運行它

http://localhost:10524/ 
相關問題