This tutorial will show you how to set up continuous deployment of your ruby website from github.
- A personal GitHub account
- A github repository containing a ruby application that works in production mode. (You can just fork the tutorial example instead if you don't want to go about creating a new ruby application)
- This tutorial will be using a repo named Hamster-Huey/ruby-splash. This is a basic ruby site that serves a modified version of the Azure App Service splash page. Fork this repository to repro this tutorial exactly.
- Go to the azure portal and click
new
and chooseWeb App on Linux
- Set up your new website making sure to choose
ruby 2.3
container
- Wait for the site creation to complete. Navigate to your new site's blade in the portal and look on the sidebar to click on
deployment options
- For Deployment source choose Github Repository
- Configure your deployment source to your GitHub accountn and private project repository. Here's an example:
- Your deployment options blade may look like this:
Click sync to kick off a sync/build of your ruby site.
- Wait for the deployment to finish
- Navigate to your site's url. You may have to wait a couple minutes as the container starts, but in the end you should see this page: