Ruby on rails 4 乘客不';t似乎正在运行(Capistrano/Rails/Nginx/Ubuntu)
我正在Ubuntu 14.4、Ruby 2.3.3、Nginx和Passenger中部署我的应用程序。使用Ruby on rails 4 乘客不';t似乎正在运行(Capistrano/Rails/Nginx/Ubuntu),ruby-on-rails-4,nginx,ubuntu-14.04,capistrano,passenger,Ruby On Rails 4,Nginx,Ubuntu 14.04,Capistrano,Passenger,我正在Ubuntu 14.4、Ruby 2.3.3、Nginx和Passenger中部署我的应用程序。使用capistrano部署时,会出现以下错误: SSHKit::Command::Failed: passenger-config exit status: 1 passenger-config stdout: Nothing written passenger-config stderr: *** ERROR: Phusion Passenger doesn't seem to be run
capistrano
部署时,会出现以下错误:
SSHKit::Command::Failed: passenger-config exit status: 1
passenger-config stdout: Nothing written
passenger-config stderr: *** ERROR: Phusion Passenger doesn't seem to be running. If you are sure that it
is running, then the causes of this problem could be one of:
1. You customized the instance registry directory using Apache's
PassengerInstanceRegistryDir option, Nginx's
passenger_instance_registry_dir option, or Phusion Passenger Standalone's
--instance-registry-dir command line argument. If so, please set the
environment variable PASSENGER_INSTANCE_REGISTRY_DIR to that directory
and run this command again.
2. The instance directory has been removed by an operating system background
service. Please set a different instance registry directory using Apache's
PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir
option, or Phusion Passenger Standalone's --instance-registry-dir command
line argument.
Tasks: TOP => passenger:restart
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as user@IP-Address: passenger-config exit status: 1
passenger-config stdout: Nothing written
passenger-config stderr: *** ERROR: Phusion Passenger doesn't seem to be running. If you are sure that it
is running, then the causes of this problem could be one of:
1. You customized the instance registry directory using Apache's
PassengerInstanceRegistryDir option, Nginx's
passenger_instance_registry_dir option, or Phusion Passenger Standalone's
--instance-registry-dir command line argument. If so, please set the
environment variable PASSENGER_INSTANCE_REGISTRY_DIR to that directory
and run this command again.
2. The instance directory has been removed by an operating system background
service. Please set a different instance registry directory using Apache's
PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir
option, or Phusion Passenger Standalone's --instance-registry-dir command
line argument.
我尝试了一些建议,例如:
但是没有任何帮助!我已经检查了我的Nginx default_站点,看看我是否指向当前的rails路径,并且所有内容看起来都是正确的
感谢您的帮助 通过在
我的应用程序名称/current/tmp
中添加restart.txt
解决了此问题:
*这是在服务器上完成的:
*触摸我的应用程序名称/current/tmp/restart.txt
并加上:
set:passenger\u restart\u触摸,在deploy.rb中为true
更新
在capistrano的最新版本中,这由gem'capistrano passenger'
负责,并在capfile中添加require'capistrano/passenger'