【问题标题】:Running Passenger 6.0.2 without Nginx?在没有 Nginx 的情况下运行乘客 6.0.2?
【发布时间】:2019-05-05 10:45:07
【问题描述】:

对于现有的 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

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

【问题讨论】:

    标签: nginx passenger


    【解决方案1】:

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

    passenger start -e production --engine=builtin
    

    如果您知道更好的解决方案,请告诉我。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-05-03
      • 1970-01-01
      • 2018-12-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多