在 nginx+unicorn 中重启单个 rails 应用

在 nginx+unicorn 中重启单个 rails 应用

我在同一个 ec2 实例上有 15-20 个独立的 rails 应用程序。rails 应用程序使用 apache + Passenger 和 Railsbaseuri 进行部署。

RailsBaseURI /games
<Directory /home/ubuntu/vol/sports/public/games>
    Options -MultiViews
</Directory>

如果我更新任何 rails 应用程序,我必须根据资产的变化相应地重新加载/重新启动 apache,这会减慢其他正在运行的应用程序的速度。我想避免影响其他应用程序,并希望重新加载单个应用程序。如果 apache 对此没有任何解决方案,我还想知道是否可以使用 nginx+unicorn 来实现这一点。

答案1

我认为 Nginx+Unicorn 的组合对你有用。如果不行,也许 Passenger企业,具有滚动重启功能。

相关内容