From 450ebcde8453c1212fa24ffb9e0a0537fc3935e6 Mon Sep 17 00:00:00 2001 From: dannyswift Date: Wed, 5 Apr 2023 23:41:56 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=9C=A8pycharm=E6=89=93=E5=BC=80=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 3 +++ .idea/inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/misc.xml | 7 +++++++ .idea/modules.xml | 8 ++++++++ .idea/msdocs-python-flask-webapp-quickstart.iml | 10 ++++++++++ .idea/vcs.xml | 6 ++++++ 6 files changed, 40 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/msdocs-python-flask-webapp-quickstart.iml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 000000000..26d33521a --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 000000000..105ce2da2 --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 000000000..1136dc76a --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 000000000..74a7a6fc7 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/msdocs-python-flask-webapp-quickstart.iml b/.idea/msdocs-python-flask-webapp-quickstart.iml new file mode 100644 index 000000000..74d515a02 --- /dev/null +++ b/.idea/msdocs-python-flask-webapp-quickstart.iml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 000000000..35eb1ddfb --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file From 4e6382c118ebd204a2083aa7dad0db3cc03959bd Mon Sep 17 00:00:00 2001 From: Danny Date: Wed, 5 Apr 2023 23:42:36 +0800 Subject: [PATCH 2/3] Add or update the Azure App Service build and deployment workflow config --- ...cs-python-flask-webapp-quickstart-test.yml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/main_msdocs-python-flask-webapp-quickstart-test.yml diff --git a/.github/workflows/main_msdocs-python-flask-webapp-quickstart-test.yml b/.github/workflows/main_msdocs-python-flask-webapp-quickstart-test.yml new file mode 100644 index 000000000..3c1094c9a --- /dev/null +++ b/.github/workflows/main_msdocs-python-flask-webapp-quickstart-test.yml @@ -0,0 +1,63 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions +# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions + +name: Build and deploy Python app to Azure Web App - msdocs-python-flask-webapp-quickstart-test + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python version + uses: actions/setup-python@v1 + with: + python-version: '3.9' + + - name: Create and start virtual environment + run: | + python -m venv venv + source venv/bin/activate + + - name: Install dependencies + run: pip install -r requirements.txt + + # Optional: Add step to run tests here (PyTest, Django test suites, etc.) + + - name: Upload artifact for deployment jobs + uses: actions/upload-artifact@v2 + with: + name: python-app + path: | + . + !venv/ + + deploy: + runs-on: ubuntu-latest + needs: build + environment: + name: 'Production' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v2 + with: + name: python-app + path: . + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + id: deploy-to-webapp + with: + app-name: 'msdocs-python-flask-webapp-quickstart-test' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_237CD2431B8B4B11895013B3DB42EFFE }} From 4eec5cc2773570f15a34a5590335b14d39d5d1c8 Mon Sep 17 00:00:00 2001 From: dannyswift Date: Wed, 5 Apr 2023 23:59:19 +0800 Subject: [PATCH 3/3] modify welcome words welcome to Azure change to welcome to Big boy up! --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index 9cdba30cd..d4f3fdcc2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -10,7 +10,7 @@
Azure Logo -

Welcome to Azure

+

Welcome to Big boy up!