From 6d599d072916795b08b6cd3ced15765fa321b1fe Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Mon, 14 Aug 2023 11:18:07 +0200 Subject: [PATCH 1/2] chore(deps): set workflow to specific version instead of using `dev` This way there are no surprises in the deployment if the worklow gets changed in `dev` at some point. --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8978850..44eb2b5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,5 +8,5 @@ on: jobs: deploy: - uses: acdh-oeaw/prosnet-workflows/.github/workflows/deploy-apis-instance.yml@dev - secrets: inherit \ No newline at end of file + uses: acdh-oeaw/prosnet-workflows/.github/workflows/deploy-apis-instance.yml@v0.1.2 + secrets: inherit From f772b24d485bcfef81213d91deef5b2a7408dd13 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Mon, 14 Aug 2023 11:45:36 +0200 Subject: [PATCH 2/2] chore: delete unused wsgi.py The base container used in the deployment workflow ships its own wsgi.py file since v0.0.1, so the instances don't have to ship their own. --- wsgi.py | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 wsgi.py diff --git a/wsgi.py b/wsgi.py deleted file mode 100644 index 89cf522..0000000 --- a/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for apis_ontology project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'apis_ontology.settings.server_settings') - -application = get_wsgi_application() \ No newline at end of file