From 615d4e59c6bb8807933dda285f34dc11c2ab9867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sun, 8 Jan 2023 15:38:56 +0100 Subject: [PATCH] Fix collectstaticfiles causing error when restarting container Fixes #23 --- CHANGELOG.md | 4 ++++ Dockerfile | 2 +- Makefile | 2 +- entrypoint.sh | 2 +- pyproject.toml | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8f1516..b8f4c54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## Unreleased + +* Fix collectstaticfiles causing error when restarting container (https://git.kucharczyk.xyz/lukas/timetracker/issues/23) + ## 0.1.3 / 2023-01-08 15:23+01:00 * Fix CSRF error (https://git.kucharczyk.xyz/lukas/timetracker/pulls/22) diff --git a/Dockerfile b/Dockerfile index 8aa0b50..d213421 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN npm install && \ FROM python:3.10.9-alpine -ENV VERSION_NUMBER 0.1.3 +ENV VERSION_NUMBER 0.1.2-3-g83f075e ENV PROD 1 RUN apk add \ diff --git a/Makefile b/Makefile index ca3c71d..5c212e3 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ shell: poetry run python src/web/manage.py shell collectstatic: - poetry run python src/web/manage.py collectstatic + poetry run python src/web/manage.py collectstatic -c --no-input poetry.lock: pyproject.toml poetry install diff --git a/entrypoint.sh b/entrypoint.sh index e2a5970..afab7c8 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,7 +5,7 @@ echo "Apply database migrations" poetry run python src/web/manage.py migrate echo "Collect static files" -poetry run python src/web/manage.py collectstatic +poetry run python src/web/manage.py collectstatic --clear --no-input echo "Starting server" caddy start diff --git a/pyproject.toml b/pyproject.toml index 0e7cd4f..55795fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "timetracker" -version = "0.1.3" +version = "0.1.2" description = "A simple time tracker." authors = ["Lukáš Kucharczyk "] license = "GPL"