如何在AWS OpsWorks中部署两个不同的raill应用程序

时间:2015-07-04 18:21:54

标签: aws-opsworks

我已经在OpsWorks上运行我的rails应用程序,现在我想在OpsWorks上运行另一个新的rails应用程序。为此,我创建了一个新的应用程序并添加到现有实例,部署成功但我无法找到访问我的新rails应用程序的方法,任何帮助都将非常感激。

1 个答案:

答案 0 :(得分:0)

Assuming that you created an Rails Application Server layer, and under that you created two Apps for the each of your apps, then you should be setting the Domain Name in each of the app's settings (bottom), i.e. myapp.mydomain.com and myapp-admin.mydomain.com. Then you need to set up your DNS to point to your public IP, i.e. in Route 53 create A records with the Alias setting that points to the correct server in the pull-down option menu.