From 313702f9fe42121c9f7a36890b0dd94cb979ecf6 Mon Sep 17 00:00:00 2001 From: woutervermeer Date: Thu, 26 Mar 2026 08:09:28 +0000 Subject: [PATCH 1/4] Update Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 71226fa..cfeaf72 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ prod: docker compose down - docker compose -f ./compose.yaml -f ./.docker-compose-files/compose.prod.yaml up -d --build + docker compose --env-file .env -f ./compose.yaml -f ./.docker-compose-files/compose.prod.yaml up -d --build docker exec quatsh-website-web-1 python manage.py collectstatic --noinput docker exec quatsh-website-web-1 python manage.py check --deploy docker exec quatsh-website-web-1 python manage.py migrate From 9397c2d4f281a6d2c66ba73d07b0597a3cc3ecf7 Mon Sep 17 00:00:00 2001 From: woutervermeer Date: Thu, 26 Mar 2026 08:14:25 +0000 Subject: [PATCH 2/4] Update .gitea/workflows/build_test.yaml --- .gitea/workflows/build_test.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitea/workflows/build_test.yaml b/.gitea/workflows/build_test.yaml index e576924..9434cd8 100644 --- a/.gitea/workflows/build_test.yaml +++ b/.gitea/workflows/build_test.yaml @@ -3,7 +3,6 @@ run-name: ${{ gitea.actor }} on: push: branches: - - pre-prod - main pull_request: From 8cfe5c6f9b16eeda4a28af0e4a257d877da747fc Mon Sep 17 00:00:00 2001 From: woutervermeer Date: Thu, 26 Mar 2026 08:15:11 +0000 Subject: [PATCH 3/4] Add .gitea/workflows/test.yaml --- .gitea/workflows/test.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitea/workflows/test.yaml diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..8e2eb60 --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,17 @@ +name: Gitea Test. +run-name: ${{ gitea.actor }} +on: + push: + branches: + - pre-prod + pull_request: + +jobs: + tests: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: test + run: make test \ No newline at end of file From 4b18769137405ec2a485563e607b727f9eca21e1 Mon Sep 17 00:00:00 2001 From: woutervermeer Date: Thu, 26 Mar 2026 09:52:33 +0000 Subject: [PATCH 4/4] Update .env.template --- .env.template | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.env.template b/.env.template index d2f94fc..3c188b4 100644 --- a/.env.template +++ b/.env.template @@ -1,8 +1,11 @@ +#NGINX +NGINX_HOSTNAME=localhost + # Django DJANGO_SETTINGS_MODULE=website.settings DJANGO_SECRET_KEY=CWHZCAZBNV57tDkwGHJwTUu3PCSnGG45 DEBUG=TRUE -ALLOWED_HOSTS=localhost +#ALLOWED_HOSTS=localhost # Database (PostgreSQL) POSTGRES_USER=test_user @@ -14,4 +17,4 @@ POSTGRES_DB=test_db # Gunicorn GUNICORN_WORKERS=3 -GUNICORN_TIMEOUT=120 +GUNICORN_TIMEOUT=120 \ No newline at end of file