This repository contains a sample bottle application for Azure Websites. The code was generated by choosing the Bottle template in the Azure Marketplace as described on this Azure documentation page (2015-06-24).
There was one problem with the original code: static files were not served on
Azure, only on the development server. I suspect there is a problem with
web.config (in my case for 2.7). However, I could not figure out the
problem. I moved the static file handler in bottle to route.py
.
- Clone this repository. You might want to rename the repository.
- Log into Azure Portal and create a "Web App". Wait until the app is created.
- Click on the created app and click on the tile "Deployment". Then "Choose Source" -> "Github". Authorize Azure to access your GitHub account.
- Choose the repository. Wait until the initial version is deployed.
Now, as soon as you push a change to your GitHub repository, the change will be deployed directly to the Azure site.
A demo site can be found at http://bottle-azure-boilerplate.azurewebsites.net/.
- original code by the PTVS team
- changes by Stephan Heuel, @ping13