Create Makefile and remove more files
This commit is contained in:
parent
229d293f1e
commit
71aacef372
|
@ -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
|
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
|
@ -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
|
|
Loading…
Reference in New Issue