Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
615d4e59c6 | |||
83f075e49d |
@ -1,3 +1,11 @@
|
|||||||
|
## 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)
|
||||||
|
|
||||||
## 0.1.2 / 2023-01-07 22:05+01:00
|
## 0.1.2 / 2023-01-07 22:05+01:00
|
||||||
|
|
||||||
* Switch to Uvicorn/Gunicorn + Caddy (https://git.kucharczyk.xyz/lukas/timetracker/pulls/4)
|
* Switch to Uvicorn/Gunicorn + Caddy (https://git.kucharczyk.xyz/lukas/timetracker/pulls/4)
|
||||||
|
@ -6,7 +6,7 @@ RUN npm install && \
|
|||||||
|
|
||||||
FROM python:3.10.9-alpine
|
FROM python:3.10.9-alpine
|
||||||
|
|
||||||
ENV VERSION_NUMBER 0.1.0-59-gc9b2d5b
|
ENV VERSION_NUMBER 0.1.2-3-g83f075e
|
||||||
ENV PROD 1
|
ENV PROD 1
|
||||||
|
|
||||||
RUN apk add \
|
RUN apk add \
|
||||||
@ -28,4 +28,4 @@ RUN pip install --no-cache-dir poetry
|
|||||||
RUN poetry install --without dev
|
RUN poetry install --without dev
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
CMD [ "/entrypoint.sh" ]
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
2
Makefile
2
Makefile
@ -44,7 +44,7 @@ shell:
|
|||||||
poetry run python src/web/manage.py shell
|
poetry run python src/web/manage.py shell
|
||||||
|
|
||||||
collectstatic:
|
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.lock: pyproject.toml
|
||||||
poetry install
|
poetry install
|
||||||
|
@ -5,7 +5,7 @@ echo "Apply database migrations"
|
|||||||
poetry run python src/web/manage.py migrate
|
poetry run python src/web/manage.py migrate
|
||||||
|
|
||||||
echo "Collect static files"
|
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"
|
echo "Starting server"
|
||||||
caddy start
|
caddy start
|
||||||
|
Reference in New Issue
Block a user