为一个rails应用程序运行多个Phusion乘客实例

时间:2023-01-18 19:51:30

is it possible (or a good idea) to run multiple Phusion passenger instances on 1 server (same rails app on many instances).

是否可能(或一个好主意)在1台服务器上运行多个Phusion乘客实例(在许多实例上运行相同的rails应用程序)。

I wanna use Nginx as Frontend webserver (loadbalancer).

我想使用Nginx作为Frontend网络服务器(loadbalancer)。

Any best practice?

任何最佳做法?

Thanks

2 个解决方案

#1


Yes it is possible and quite easy. Just you need to run it on different port.

是的,这是可能的,也很容易。只需要在不同的端口上运行它。

You can refer this link. In this, they have ran same application on multiple ruby version.

你可以参考这个链接。在这方面,他们在多个ruby版本上运行相同的应用程序。

#2


Yes it is possible and works fine. Just make sure they're assigned on different ports.

是的,这是可能的,并且工作正常。只需确保它们分配在不同的端口上。

#1


Yes it is possible and quite easy. Just you need to run it on different port.

是的,这是可能的,也很容易。只需要在不同的端口上运行它。

You can refer this link. In this, they have ran same application on multiple ruby version.

你可以参考这个链接。在这方面,他们在多个ruby版本上运行相同的应用程序。

#2


Yes it is possible and works fine. Just make sure they're assigned on different ports.

是的,这是可能的,并且工作正常。只需确保它们分配在不同的端口上。