Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在没有Nginx的情况下运行乘客6.0.2?_Nginx_Passenger - Fatal编程技术网

在没有Nginx的情况下运行乘客6.0.2?

在没有Nginx的情况下运行乘客6.0.2?,nginx,passenger,Nginx,Passenger,对于现有的rails应用程序,我希望使用不带Nginx的Passenger(因为我已经使用Traefik作为反向代理/负载平衡器) 但乘客启动也总是统计Nginx。可悲的是,我既不是乘客,也不是Nginx专家 如何启动乘客“独立” 我正在使用 Passenger 6.0.2 Rails 5.1.1 我从…开始 bundle exec passenger start -e production 没有passengerconfig.json(…) 阅读文档没有帮助 这就是我启动乘客的方式 #!/

对于现有的rails应用程序,我希望使用不带Nginx的Passenger(因为我已经使用Traefik作为反向代理/负载平衡器)

但乘客启动也总是统计Nginx。可悲的是,我既不是乘客,也不是Nginx专家

如何启动乘客“独立”

我正在使用

Passenger 6.0.2
Rails 5.1.1
我从…开始

bundle exec passenger start -e production
没有passengerconfig.json(…) 阅读文档没有帮助

这就是我启动乘客的方式

#!/bin/bash
bundle exec rake db:migrate RAILS_ENV=production
bundle exec passenger start -e production
当我使用grep检查流程时,我看到

nginx: master process /usr/local/bundle/gems/passenger-6.0.2/buildout/support-binaries/nginx-1.15.8 -c /tmp/passenger-standalone.184ibaq/nginx.conf -p /tmp/passenger-standalone.184ibaq
nginx: worker process
root        
/usr/local/bundle/gems/passenger-6.0.2/buildout/support-binaries/PassengerAgent temp-dir-toucher /tmp/passenger-standalone.184ibaq --cleanup --daemonize --pid-file /tmp/passenger-standalone.184ibaq/temp_dir_toucher.pid --log-file /usr/src/app/log/passenger.3000.log --nginx-pid 27

请帮助我如何(重新)配置乘客,使其跳过Nginx。

我想我自己找到了解决方案:

passenger start -e production --engine=builtin
如果你知道更好的解决方案,请告诉我