2

首先,我是一个完全的新手——我一直试图弄湿我的脚,但在这里遇到了一些麻烦。

我已经按照http://kb.mediatemple.net/questions/279/Ruby+on+Rails+using+Mongrel+Clusters安装了 rails,除了最后一个步骤之外,一切正常:

“cp /var/www/vhosts/testapp.mt-example.com/rails/testapp/public/.htaccess /var/www/vhosts/testapp.mt-example.com/rails/testapp/public/.htaccess.old && echo 'ErrorDocument 500 "应用程序错误 Rails 应用程序无法正常启动"' > /var/www/vhosts/testapp.mt-example.com/rails/testapp/public/.htaccess"

它返回:“ cp:无法统计`/var/www/vhosts/myurl.com/rails/myapp/public/.htaccess':没有这样的文件或目录”

当我访问该域时,rails 似乎可以工作 - 但是当我单击“关于您的应用程序的环境”时,我得到“我们很抱歉,但出了点问题。

我们已收到有关此问题的通知,我们将尽快进行查看。”

然后我设置了一些快速脚手架只是为了看看发生了什么,从浏览器访问这些页面时收到相同的消息。

提前感谢您的帮助!

4

1 回答 1

1

在仔细遵循相同的媒体寺庙操作方法并以这种方式弄清楚之后,刚才有完全相同的问题/错误消息:

我检查了 mongrel 的状态,发现它实际上并没有启动:

mongrel_cluster]# /etc/init.d/mongrel_cluster status
Checking all mongrel_clusters...
mongrel_rails cluster::status -C testapp.yml
missing pid_file: /var/run/mongrel_cluster/mongrel.4000.pid
missing mongrel_rails: port 4000 ...

然后,我在媒体殿堂 KB 中跟随这条线索获取杂种原木

http://kb.mediatemple.net/questions/245/View+the+Mongrel+Logs+for+a+Ruby+on+Rails+application

在日志中显示此错误消息:

Rails requires RubyGems >= 1.3.2 (you have 1.3.1). Please `gem update --system` and try again.

没问题 - 我运行了它要求的更新命令,现在一切正常。看起来媒体神殿需要更新他们的说明,因为每个人都遵循它一行行都会遇到这个错误,因为它有用户安装 RubyGems 1.3.1(现在通知他们..)

希望这可以帮助

于 2010-01-24T04:33:54.660 回答