简体   繁体   English

如何在Microsoft Azure Ubuntu虚拟机上的Rails服务器上运行ruby

[英]How to run a ruby on rails server on a microsoft azure ubuntu virtual machine

So I am a total newbie to Microsoft azure and deploying applications on a server, I've seen a bunch of tutorials for deploying a rails application on azure, but they all use the classic portal. 因此,我完全是Microsoft azure的新手,并在服务器上部署应用程序,我看过很多关于在azure上部署Rails应用程序的教程,但是它们都使用经典门户。 I'm using the new portal with the resource manager, and I've got no idea how to translate what those tutorials want into the new resource manager deployment model. 我正在将新门户与资源管理器一起使用,但是我不知道如何将这些教程想要的内容转换为新的资源管理器部署模型。

So yeah I already have the virtual machine set up. 是的,我已经设置了虚拟机。 I already have the rails app in it, and I can run it locally inside the server just fine using the rails s command, but how do I actually run it in a way that is accessible through the web, where I can type in the DNS I set up in azure and get to the rails server interface? 我已经有了rails应用程序,并且可以使用rails s命令在服务器内部本地运行它,但是我该如何以可通过Web访问的方式来运行它,我可以在其中键入DNS我在Azure中设置并进入Rails服务器界面?

The Azure doesn't control your DNS server and it's records. Azure不控制您的DNS服务器,而是记录。 You just have to look up the Public IP of the VM (and you'd better make it static , so it won't change) and create A record in your DNS to point to that IP. 您只需要查找VM的公共IP(最好将其设为静态 ,这样就不会更改),并在DNS中创建A记录以指向该IP。
As for the connectivity, you would want to look into the Network Security Groups, to allow for incoming traffic . 至于连接性,您需要调查网络安全组,以允许传入流量

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

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