GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — django-docker-template/Makefile at master · firdavsDev/django-docker-template

Expand file tree

/

Makefile

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
65 lines (45 loc) · 1.41 KB
/

Makefile

Copy path

File metadata and controls

65 lines (45 loc) · 1.41 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
ifneq (,$(wildcard ./.env))
include .env
export
ENV_FILE_PARAM = --env-file .envs
endif
build:
docker compose -f local.yml up --build --remove-orphans
# ---- Plain-python local run via uv (no Docker; SQLite fallback) ----
venv:
uv sync --group dev
run-local:
uv run python manage.py migrate
uv run python manage.py runserver
lock:
uv lock
uv export --no-dev --no-hashes -o requirements/base.txt
uv export --group dev --no-hashes -o requirements/local.txt
uv export --extra production --no-dev --no-hashes -o requirements/production.txt
# ---- Docker Compose ----
up:
docker compose -f local.yml up
down:
docker compose -f local.yml down
down-v:
docker compose -f local.yml down -v
logs:
docker compose -f local.yml logs -f
makemigrations:
docker compose -f local.yml run --rm django python manage.py makemigrations
migrate:
docker compose -f local.yml run --rm django python manage.py migrate --no-input
superuser:
docker compose -f local.yml run --rm django python manage.py createsuperuser
shell:
docker compose -f local.yml run --rm django python manage.py shell_plus
restart:
docker compose -f local.yml restart
backup:
docker compose -f local.yml exec postgres backup
backups:
docker compose -f local.yml exec postgres backups
copy-backups:
docker cp $(docker compose -f local.yml ps -q postgres):/backups ./backups
restore:
docker compose -f local.yml exec postgres restore file_name.sql.gz
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.