Create Makefile and remove more files

This commit is contained in:
Mark Veidemanis 2022-10-12 07:22:22 +01:00
parent 229d293f1e
commit 71aacef372
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
5 changed files with 29 additions and 48 deletions

11
Makefile Normal file
View File

@ -0,0 +1,11 @@
run:
docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env up -d
build:
docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env build
stop:
docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env down
log:
docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env logs -f

View File

@ -23,7 +23,7 @@ class Home(View):
template_name = "index.html" template_name = "index.html"
async def get(self, request): async def get(self, request):
# await sleep(1) await sleep(1)
return render(request, self.template_name) return render(request, self.template_name)

View File

@ -1,18 +0,0 @@
# syntax=docker/dockerfile:1
FROM python:3
RUN useradd -d /code xf
RUN mkdir /code
RUN chown xf:xf /code
RUN mkdir /venv
RUN chown xf:xf /venv
USER xf
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /code
COPY requirements.dev.txt /code/
RUN python -m venv /venv
RUN . /venv/bin/activate && pip install -r requirements.dev.txt
CMD . /venv/bin/activate && exec python manage.py runserver 0.0.0.0:8000

View File

@ -1,12 +0,0 @@
wheel
django
pre-commit
django-crispy-forms
crispy-bulma
stripe
django-rest-framework
django-htmx
cryptography
django-debug-toolbar
django-debug-toolbar-template-profiler
orjson