2010-09-03 78 views
0

我目前使用hostmonster.com托管rails应用程序。有人使用它们吗?我注意到它们对于rails应用程序有点慢。这是为什么?在系统资源方面,轨道是否真的使用了那么多?有没有人在hostmonster.com上使用脚本部署capistrano?Rails部署FASTCGI

这是我当前的.htaccess脚本。可以写一个更好的.htaccess加速网站?还是主要是硬件问题?

# General Apache options 
AddHandler fcgid-script .fcgi 
RewriteEngine On 
RewriteRule ^$ index.html [QSA] 
RewriteRule ^([^.]+)/!$ $1.html [QSA] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] 
ErrorDocument 500 "Application error Application failed to start properly" 

关于在hostmonster.com上部署的任何提示都非常感谢。提前致谢。

回答

3

FASTCGI不再是运行Rails应用程序的常用方法。

过去几年出现了更好的解决方案 - Phusion Passenger是一种常见的选择。您可以将它与Apache或Nginx一起使用。

您可能会发现,使用专门针对Rails的托管提供程序(如EngineYard或Heroku)可以提高应用程序的性能并简化部署。

+0

感谢您的提示 – RoR 2010-09-03 16:24:13