阿帕奇/ Rails的/乘客显示网页索引? [英] Apache/Rails/Passenger Displaying Site Index?

查看:144
本文介绍了阿帕奇/ Rails的/乘客显示网页索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Rails应用程序,我已经成功地与杂种和Webkit测试。现在我想测试部署。我设置了使用Ubuntu 8.04 VMware映像。我已经安装了Rails下面这个方法<一个href=\"https://help.ubuntu.com/community/RubyOnRails\">https://help.ubuntu.com/community/RubyOnRails使用宝石1.3代替1.2除外。我已经安装并配置了乘客。然而,当我访问我的网站指数( HTTP://some.ip.that.i 'm.testing /)我只是让我的轨道站点的目录索引。我要指出,因为我想知道我只是把我的应用程序在/ var / WWW。

I have a Rails app that I have successfully tested with Mongrel and Webkit. Now I want to test deployment. I set up a VMWare Image using Ubuntu 8.04. I have installed Rails following this method https://help.ubuntu.com/community/RubyOnRails with the exception of using Gems 1.3 instead of 1.2. I have configured and installed Passenger. However, when I visit my sites index (http://some.ip.that.i'm.testing/) I simply get the directory index of my rails site. I should note that since I'm testing I just dumped my app in /var/www.

我的Apache2的error.log文件显示了这一点,这只是:

My Apache2 error.log file shows this and this only:

[星期二9月30日15点10分41秒2008] [声明]的Apache / 2.2.8(Ubuntu的)Phusion_Passenger / 2.0.3配置 - 恢复正常运作。

[Tue Sep 30 15:10:41 2008] [notice] Apache/2.2.8 (Ubuntu) Phusion_Passenger/2.0.3 configured -- resuming normal operations

任何想法,这可能是造成这个问题?这似乎客运配置正确,但我不知道为什么我的Rails应用程序不显示为什么网站的目录列表。

Any idea what could be causing this problem? It seems Passenger is configured properly, but I'm not sure why my rails app is not displaying and why the site's directory listing is.

感谢。

推荐答案

两个问题:

1)的Rails运行在所有的服务器上?乘客应在第一次请求自动启动Rails的 - 如果你做一个ps的,你看它运行?

1) Is Rails running at all on the server? Passenger should start Rails automatically on first request - if you do a ps, do you see it running?

2)的目录,你看到的 - 它是你的轨道目录或公共/目录?如果是前者,你的符号链接指向很可能在错误的地方(它应该去公共/).

2) Which directory are you seeing - is it your rails directory or the public/ directory? If it's the former, your symlink is likely pointing the wrong place (it should go to public/).

(我以前见过这个问题,我试图记得我是如何调试这...这是我第一个两段。)

(I've seen this problem before and am trying to remember how I debugged it... these are my first two thoughts.)

这篇关于阿帕奇/ Rails的/乘客显示网页索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆