From dad121ae3761867136aa068048ce369aa75d90c3 Mon Sep 17 00:00:00 2001 From: Rasmus <129782930+Rasmusp98@users.noreply.github.com> Date: Fri, 6 Oct 2023 09:32:47 +0200 Subject: [PATCH 1/4] Create workflow using Azure CLI --- .../workflows/main_rasmus-schoolproject.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/main_rasmus-schoolproject.yml diff --git a/.github/workflows/main_rasmus-schoolproject.yml b/.github/workflows/main_rasmus-schoolproject.yml new file mode 100644 index 000000000..1486fcbde --- /dev/null +++ b/.github/workflows/main_rasmus-schoolproject.yml @@ -0,0 +1,35 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions + +name: 'Build and deploy Python app to Azure Web App: Rasmus-Schoolproject' + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python version + uses: actions/setup-python@v1 + with: + python-version: '3.10' + + - name: Build using AppService-Build + uses: azure/appservice-build@v2 + with: + platform: python + platform-version: '3.10' + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + with: + app-name: 'Rasmus-Schoolproject' + slot-name: 'production' + publish-profile: ${{ secrets.AzureAppService_PublishProfile_dae9510386c248a8a89c21147baa6bbf }} From d86e28a5d1d0dbb8ca74e8aa93c41f73e6d38e4a Mon Sep 17 00:00:00 2001 From: Rasmus <129782930+Rasmusp98@users.noreply.github.com> Date: Fri, 6 Oct 2023 10:13:36 +0200 Subject: [PATCH 2/4] Update home.html --- hello_app/templates/home.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hello_app/templates/home.html b/hello_app/templates/home.html index 95609fecd..40e86a70b 100644 --- a/hello_app/templates/home.html +++ b/hello_app/templates/home.html @@ -1,7 +1,8 @@ {% extends "layout.html" %} -{% block title %} +{% Rasmus-Schoolprojects %} Home {% endblock %} {% block content %}
Home page for the Visual Studio Code Flask tutorial.
{% endblock %} + From 1e4e2046010f03a8bb4395d60052f29c38f399f6 Mon Sep 17 00:00:00 2001 From: Rasmus <129782930+Rasmusp98@users.noreply.github.com> Date: Fri, 6 Oct 2023 10:19:17 +0200 Subject: [PATCH 3/4] Update about.html --- hello_app/templates/about.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_app/templates/about.html b/hello_app/templates/about.html index 8611b6414..905aa6aea 100644 --- a/hello_app/templates/about.html +++ b/hello_app/templates/about.html @@ -3,5 +3,5 @@ About us {% endblock %} {% block content %} -About page for the Visual Studio Code Flask tutorial.
+JEg håber virkelig det her virker .
{% endblock %} From 87ce074d23152f37dcf37bf200f17bd2e640ce50 Mon Sep 17 00:00:00 2001 From: Rasmus <129782930+Rasmusp98@users.noreply.github.com> Date: Wed, 11 Oct 2023 10:17:48 +0200 Subject: [PATCH 4/4] Update home.html --- hello_app/templates/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_app/templates/home.html b/hello_app/templates/home.html index 40e86a70b..4666f3d4f 100644 --- a/hello_app/templates/home.html +++ b/hello_app/templates/home.html @@ -1,5 +1,5 @@ {% extends "layout.html" %} -{% Rasmus-Schoolprojects %} +{% block titel %} Home {% endblock %} {% block content %}