gpt4 book ai didi

ruby-on-rails - 由于此错误 : Option 'agents_dir' missing in file - Rails 4 + Passenger deployment,无法初始化乘客

转载 作者:行者123 更新时间:2023-12-04 17:18:22 25 4
gpt4 key购买 nike

我一直在用头撞门,试图在 Ubuntu 14 + Apache2 + Passenger 上部署 Rails 4 应用程序。我似乎取得了一些进展:使用正确的 apache 模块正确安装了乘客,设置了我的 apache conf 文件,一切都重新启动,等等。当我访问我的站点时,我得到了我的 Rails 应用程序公共(public)目录的列表。我调查了日志,发现以下内容:
Passenger could not be initialized because of this error: Option 'agents_dir' missing in file '/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini'

我在不同的 SO 帖子中说了一些关于可用模组的东西,所以这里是 /etc/apache2/mods-available/passenger.conf :
<IfModule mod_passenger.c>
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby
</IfModule>

/etc/apache2/mods-available/passenger.load :
LoadModule passenger_module /usr/lib/apache2/modules/mod_passenger.so
我究竟做错了什么?我要亲吻解决这个问题的人,我发誓。

最佳答案

我刚刚遇到这个问题并通过重新安装 passenger 来解决它使用以下命令打包:

sudo apt-get install --reinstall passenger passenger-dev

关于ruby-on-rails - 由于此错误 : Option 'agents_dir' missing in file - Rails 4 + Passenger deployment,无法初始化乘客,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29023264/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com