如何在windows xp中的xampp中的rails应用程序上部署ruby?

时间:2011-09-09 05:31:39

标签: ruby-on-rails ruby xampp

我对Ruby环境很新。 我想在windows xp上的xampp中运行我的Ruby on rails应用程序,而不是WeBrick服务器,它是内置于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 

2 个答案:

答案 0 :(得分:0)

要使用apache部署您的应用,您需要使用phusion passenger http://www.modrails.com 网上有很多方法,文档足以让服务运行。

答案 1 :(得分:0)

这意味着您的Ruby on Rails服务器未运行。 您需要先运行服务器。

我制作了一个包含

的批处理文件 start-server.bat
d:
cd "D:\Ruby\Web\rails1"
"C:\RailsInstaller\Ruby1.9.3\bin\ruby.exe" script\rails server

然后检查正在运行的服务器的PORT编号

command prompt

因为截图上的端口显示为10524,您可以在

上运行它
http://localhost:10524/