Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello World App

Minimal Flask app for a demo deployment to Azure App Service.

Local run

python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
python app.py

App will be available at http://localhost:8000 and shows a simple Hello World page.

Azure deployment example

Create the Azure resources and deploy from this folder:

az group create --name rg-demo-python-app --location westeurope
az appservice plan create --name plan-demo-python-app --resource-group rg-demo-python-app --sku B1 --is-linux
az webapp create --resource-group rg-demo-python-app --plan plan-demo-python-app --name <unique-app-name> --runtime "PYTHON|3.12"
az webapp config set --resource-group rg-demo-python-app --name <unique-app-name> --startup-file "gunicorn --bind 0.0.0.0:\$PORT app:app"
az webapp up --name <unique-app-name> --resource-group rg-demo-python-app --runtime "PYTHON:3.12"

Route

  • / shows a simple HTML page with Hello, World!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages