From 9569abaf6f39ae72496e9641c6c57f4f97ae4294 Mon Sep 17 00:00:00 2001 From: Kraig Brockschmidt Date: Tue, 22 Sep 2020 16:58:26 -0700 Subject: [PATCH] Rename application.py to app.py Doing so allows the associated article to drop the set FLASK_APP step for simplicity. Also update .gitignore for VS Code, and update the readme. --- .gitignore | 5 +++++ README.md | 6 +++--- application.py => app.py | 1 - 3 files changed, 8 insertions(+), 4 deletions(-) rename application.py => app.py (99%) diff --git a/.gitignore b/.gitignore index 72364f99f..441a11ffd 100644 --- a/.gitignore +++ b/.gitignore @@ -81,9 +81,14 @@ celerybeat-schedule # virtualenv venv/ ENV/ +.venv/ # Spyder project settings .spyderproject # Rope project settings .ropeproject + +# Visual Studio Code +.vscode/ + diff --git a/README.md b/README.md index 3f21465ef..8a2e9e91e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ --- page_type: sample -description: "This is a minimal sample app that demonstrates how to run a Python Flask application on Azure App Service on Linux." +description: "A minimal sample app that can be used to demonstrate deploying Flask apps to Azure App Service on Linux." languages: - python products: @@ -10,9 +10,9 @@ products: # Python Flask sample for Azure App Service (Linux) -This is a minimal sample app that demonstrates how to run a Python Flask application on Azure App Service on Linux. +This is a minimal Flask app that can be deployed to Azure App Service on Linux. -For more information, please see the [Python on App Service quickstart](https://docs.microsoft.com/azure/app-service/containers/quickstart-python). +For instructions on running and deploying the code, see [Quickstart: Create a Python app in Azure App Service on Linux](https://docs.microsoft.com/azure/app-service/quickstart-python). ## Contributing diff --git a/application.py b/app.py similarity index 99% rename from application.py rename to app.py index 3cf7d9387..7f8a1f2e8 100644 --- a/application.py +++ b/app.py @@ -1,7 +1,6 @@ from flask import Flask app = Flask(__name__) - @app.route("/") def hello(): return "Hello, World!"