GitHub - shimizuyasuhiro/python-docs-hello-world: A simple python application for docs

page_type description languages products

sample

A minimal sample app that can be used to demonstrate deploying Bottle ~~Flask~~ apps to Azure App Service on Linux.

python

azure

azure-app-service

Azure App Service (Linux) で bottle を動かす

過去にはAzure公式らしき Bottle のチュートリアルやテンプレレポジトリもあったようなのだが、公式採用なくなったからとかなのか、 消滅しているようだったので、公式テンプレート?の Flask 版をフォークして Bottle 用に書き換えてみる。

ポイント

  1. requirements.txt を Bottle を利用するように変更する

  2. app.py の Flask 記述部分を bottle の記述に変更する

    • サンプルコードなどでは最後にrun()を呼び出すことが多いがapp=default_app()にする

.github/workflowsは、 Azure App Serviceで 継続的なデプロイ(CI/CD)を選択して追加されたもの

Python Bottle Flask sample for Azure App Service (Linux)

This is a minimal Bottle Flask app that can be deployed to Azure App Service on Linux.

For instructions on running and deploying the code, see Quickstart: Create a Python app in Azure App Service on Linux.

Contributing

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.