我有一个 Rails 6 / ruby 2.7.2 应用程序,以及乘客 gem,该应用程序在产品中运行良好,但最终部署上限与
01 *** ERROR: Phusion Passenger(R) doesn't seem to be running. If you are sure that it
01 is running, then the causes of this problem could be one of:
01
01 1. You customized the instance registry directory using Apache's
01 PassengerInstanceRegistryDir option, Nginx's
01 passenger_instance_registry_dir option, or Phusion Passenger(R) Standalone's
01 --instance-registry-dir command line argument. If so, please set the
01 environment variable PASSENGER_INSTANCE_REGISTRY_DIR to that directory
01 and run this command again.
01 2. The instance directory has been removed by an operating system background
01 service. Please set a different instance registry directory using Apache's
01 PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir
01 option, or Phusion Passenger(R) Standalone's --instance-registry-dir command
01 line argument.
我能找到的唯一帮助似乎是乘客的非宝石安装,我安装了乘客并将这些模块制作到/etc/apache2.conf,如安装程序所示:
LoadModule passenger_module /home/deploy/.rvm/gems/ruby-2.7.2/gems/passenger-6.0.10/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /home/deploy/.rvm/gems/ruby-2.7.2/gems/passenger-6.0.10
PassengerDefaultRuby /home/deploy/.rvm/gems/ruby-2.7.2/wrappers/ruby
</IfModule>
Passenger / apache 似乎工作正常,我只是无法从 capistrano 重新启动应用程序。
感谢您的帮助, 凯文
有人找到解决这个问题的方法了吗?