Ruby 应用程序超时(使用 Phusion Passenger 部署在 Amazon EC2 上)

标签 ruby amazon-ec2 passenger

我正在尝试在 Amazon EC2(Ubuntu + Apache + Passenger)上部署 SequenceServer,但它“挂起”:http://ncwebguru.com/sequenceserver .

同样的事情发生在“helloworld”应用程序上:http://ncwebguru.com/sequenceserver1

它在我的物理 Linux 服务器(不是 EC2)上运行良好。

它不会将任何内容记录到 apache 日志文件中,所以我不确定如何解决它。非常感谢任何有关如何修复或解决问题的帮助。

Apache 配置文件:

<VirtualHost *:80>
    DocumentRoot /var/www
    <Directory /var/www>
        Allow from all
    </Directory>

    RackBaseURI /sequenceserver
    RackBaseURI /sequneceserver1

    <Directory /var/www/sequenceserver>
        Options -MultiViews
    </Directory>
</VirtualHost>

/var/www目录:

sequenceserver # sym link to /path/to/actual/sequenceserver/public
sequenceserver1 # sym link to /path/to/helloworld/public

/path/to/helloworld 目录:

tmp/ # empty
public/ # empty
config.ru # helloworld ruby rack app

config.ru

app = proc do |env|
    return [200, { "Content-Type" => "text/html" }, "hello world"]
end
run app

最佳答案

看起来您需要在 Apache 的配置文件中设置 TimeOut 指令。超时以秒为单位表示。例如,以下将超时设置为 5 分钟:

TimeOut 300

关于Ruby 应用程序超时(使用 Phusion Passenger 部署在 Amazon EC2 上),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10721858/

相关文章:

css - 批处理 Ruby Sass 监视字符串

Ruby 范围/绑定(bind)

apache-spark - 为什么我的 pyspark 在启动时在 yarn 中以 ACCEPTED 状态挂起?

乘客根的 Nginx 未知指令

Ubuntu 17.04 Nginx/乘客

jquery - 路由错误没有路由匹配 [GET] "/microposts/304 - Deleting a Micropost - Michael Hartl' s railstutorial.org 第 11 章

arrays - 用 2 个括号迭代 "For"循环

macos - 无法从我的 Mac SSH 到 EC2,但可以从其他设备

php - IAM 角色名称在 Yii 1 中被视为类

ruby-on-rails - Fedora 启动时使用Passenger/mod_rails 成功启动Apache