summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-04-23 11:16:38 +0100
committerMatthew Lemon <y@yulqen.org>2024-04-23 11:16:38 +0100
commit0f951dcf029d4af284467543a3afdf5bf6581a20 (patch)
treea48384210cdc168e3bd3ccff6d6d516eeed9e748 /Makefile
parent8b084e9fe7a5f3a04c32daf9a24f7f2cf67300f9 (diff)
switched to Django
Diffstat (limited to '')
-rw-r--r--Makefile38
1 files changed, 10 insertions, 28 deletions
diff --git a/Makefile b/Makefile
index 8ce8f7c..7468e39 100644
--- a/Makefile
+++ b/Makefile
@@ -1,28 +1,10 @@
-create-network:
- @docker network create ded
-
-docker-build-app:
- @docker build -t ded-core:latest .
-
-docker-run-app:
- @docker run -it --rm --network ded --name ded-app -p 4000:4000 -v ./:/app ded-core:latest
-
-docker-build-postres:
- @docker build -t postgres -f postgresql/Dockerfile .
-
-docker-run-postgres:
- @docker run --name ded-db --network ded -d --rm -e POSTGRES_PASSWORD=secret -v ded-data:/var/lib/postgres/data -p 5432:5432 postgres
-
-docker-stop-app:
- @docker stop ded-core
-
-# run:
-# @go run ./cmd/web -addr ":4000"
-
-# assume GRANT SELECT, INDEX, CREATE, INSERT, UPDATE, DROP, DELETE ON ded.* TO 'web'@'localhost';
-# assume CREATE DATABASE ded CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-populate:
- mariadb -u web ded -p < populate.sql
-
-entr-run:
- find . | entr -r go run ./cmd/web
+runserver:
+ python manage.py runserver 0.0.0.0:8000
+runserver-docker:
+ docker run -it --name ded -d --rm -p 8000:8000 ded:latest
+runserver-docker-with-vol:
+ docker run -it --name ded -d --rm -p 8000:8000 -v $(PWD):/app ded:latest
+build:
+ docker build -t ded:latest .
+test:
+ python manage.py test