I have an Azure subscription active and I want to migrate my rails app from Heroku to Azure, but it really overwhelms me and I don't really know how to do it.
What I want is the following:
- Move my rails app (REST Webservice API + static homepage) from Heroku to Azure.
- Use postgreSQL database (though I'm open to others, that's the one I was using in Heroku).
- Use continuous deployment with git. In heroku I can just "git push heroku master" and it automagically stops, updates and restart the server. That's what I want to accomplish in Azure as well.
After getting familiar with Azure portal, a lot of doubts come to mind.
Do I need to create a Virtual Machine with Ubuntu Server installed and install there rails, ruby, git etc? (Already done)
Do I need to manually pull the newest code from master repository from the server console and relaunch the server every time I want to update the server?
Do I need to create virtual networks?
Do I need to create a SQL server in Azure or can I just use gem postgresql in the VM as I've always done?
Thank you beforehand, I am really a newbie to Azure. Definitely much more complex than Heroku. I would appreciate if someone could point me in the right direction as to what kind of infrastructure should I use and how to set it up.
Cheers!