简体   繁体   English

在Elastic Beanstalk上部署Rails应用程序-WEBrick是否自动被乘客取代?

[英]Deploying Rails App on Elastic Beanstalk - Is WEBrick automatically replaced by passenger?

Quick Question: 快速提问:

I develop a ruby on rails application on my laptop. 我在笔记本电脑上开发了Ruby on Rails应用程序。 Rails has WEBrick installed as an out of the box APPLICATION server. Rails已将WEBrick安装为现成的APPLICATION服务器。

I deploy my app on amazon web services elastic beanstalk. 我将我的应用程序部署在亚马逊Web服务弹性beantalk上。

I choose The configuration: Ruby 2.2 with Passenger version 2.0.8, which contains: 我选择配置:Ruby 2.2 with Passenger版本2.0.8,其中包含:

64bit Amazon Linux 2015.09 v2.0.8 running Ruby 2.2 (Passenger Standalone) 运行Ruby 2.2的64位Amazon Linux 2015.09 v2.0.8(Passenger Standalone)

Ruby 2.2.3 Ruby 2.2.3

RubyGems 2.4.5.1 RubyGems 2.4.5.1

Passenger 4.0.59 - Application server 乘客4.0.59-应用程序服务器

nginx 1.8.0 - Web server. nginx 1.8.0-Web服务器。

When I deploy my app, does elastic beanstalk automatically replace WEBrick with passenger??? 当我部署我的应用程序时,弹性beantalk是否会自动用乘客替换WEBrick ??? Or-- do I need to install the passenger gem myself? 或者-我需要自己安装乘客宝石吗?

Thanks! 谢谢!

Figured it out. 弄清楚了。 I used the AWS GUI console online to download the virtual server's instance logs. 我在线使用了AWS GUI控制台来下载虚拟服务器的实例日志。 I checked the ed-activity.log file and saw that the server was started with passenger. 我检查了ed-activity.log文件,发现服务器是从旅客那里启动的。

So, yes, Amazon Elastic Beanstalk automatically runs passenger even without the passenger gem in the gemfile. 因此,是的,Amazon Elastic Beanstalk会自动运行乘客,即使gemfile中没有乘客gem。

Side note, when I tried to deploy the rails app with the passenger gem, I ran into a lot of problems. 附带说明,当我尝试用乘客载具部署Rails应用程序时,遇到了很多问题。 AWS EB runs passenger standalone 4.0.59 while HomeBrew installs passenger 5.0~something or other... This conflict will take down your entire server instance. AWS EB运行乘客独立版本4.0.59,而HomeBrew安装乘客5.0或其他版本...此冲突将导致整个服务器实例瘫痪。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM