简体   繁体   English

有雾时将Rails应用程序部署到EC2吗?

[英]Deploy rails app to EC2 with fog?

This looks really simple, but I could not find any guides/ instructions on how to do it, so hopefully someone from SO can tell. 这看起来真的很简单,但是我找不到有关该操作方法的任何指南/说明,因此希望SO的人能够告诉您。

So I have a rails application. 所以我有一个Rails应用程序。

I have an AWS EC2 account. 我有一个AWS EC2帐户。 I created a server with fog.io and can ssh into it etc.. How do I actually deploy the application to this server so that it shows up at the ip etc.. A link to a guide or some directions would be greatly appreciated. 我用fog.io创建了一个服务器,可以将它ssh入其中。如何实际将应用程序部署到该服务器上,以便它显示在ip等上。将非常感谢指向指南或某些指导的链接。

I am not really married to fog, I can do rubber, but could not find any guides that show what to do after the server is created (eg how to actually send my rails app there get it to show up at some ip etc..) 我并不是真的很迷雾,我可以做橡皮筋,但是找不到任何指南来显示创建服务器后的操作(例如,如何实际发送Rails应用到那里,使其在某些IP上显示等)。 )

I guess I am spoiled by heroku deployment and fog looks like a quite simple solution. 我猜我被heroku部署宠坏了,雾看起来是一个非常简单的解决方案。 I really need EC2 functionality though, so other hostings are not the option really.. 我确实需要EC2功能,因此其他托管服务不是真正的选择。

Thanks! 谢谢!

You might want to take a look at https://github.com/wr0ngway/rubber . 您可能想看看https://github.com/wr0ngway/rubber It uses fog since the 2.0.0.pre version. 从2.0.0.pre版本开始使用雾。 I am trying the latest version now and I don't know how it goes. 我正在尝试最新版本,但不知道如何进行。 But I used the 1.5.0 version for a previous project. 但是我在以前的项目中使用的是1.5.0版本。

As it says 'The rubber plugin enables relatively complex multi-instance deployments of RubyOnRails applications to Amazon's Elastic Compute Cloud (EC2).' 如其所说:“橡胶插件可将RubyOnRails应用程序相对复杂的多实例部署到Amazon的Elastic Compute Cloud(EC2)。”

I think it's pretty useful because it manages all the deployment (software installation, configuration, app deployment) for me. 我认为这非常有用,因为它可以为我管理所有部署(软件安装,配置,应用程序部署)。 I found the documentation is rare so you have to figure it out yourself if you get any problem. 我发现文档很少见,因此如果遇到任何问题,您必须自己弄清楚。 Anyway, just give it a try. 无论如何,请尝试一下。

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

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