Rails: is Passenger Standalone suitable for production deployment?

前端 未结 2 2073
执念已碎
执念已碎 2021-02-06 07:37

The question title pretty much sums it up... I haven\'t been able to find any good resources that outline the pros / cons of using Phusion Passenger Standalone for Rails App Dep

2条回答
  •  余生分开走
    2021-02-06 08:05

    Standalone is built on top of Nginx. You can directly attach it to port 80 and it'll behave pretty much like Phusion Passenger + Nginx: it can serve static files very quickly, it'll automatically start and stop processes based on traffic, it'll auto-restart processes when they crash, it'll take care of fairly load balancing traffic between processes, etc. Performance-wise, it's exactly the same as Phusion Passenger for Nginx. So yes you can use it in production.

    Nginx does not support .htaccess. It's an Apache thing.

    If you run multiple Standalones it's a little bit more memory-heavy than running a single Phusion Passenger for Nginx but the overhead is relatively small.

提交回复
热议问题