Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

ebp-group/bottle-azure-boilerplate

Repository files navigation

Boilerplate for Bottle on Azure

About

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).

Changes to the original code

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.

Usage

  1. Clone this repository. You might want to rename the repository.
  2. Log into Azure Portal and create a "Web App". Wait until the app is created.
  3. Click on the created app and click on the tile "Deployment". Then "Choose Source" -> "Github". Authorize Azure to access your GitHub account.
  4. 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/.

Author

  • original code by the PTVS team
  • changes by Stephan Heuel, @ping13