forked from LondheShubham153/devboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (38 loc) · 1.13 KB
/
Copy pathMakefile
File metadata and controls
47 lines (38 loc) · 1.13 KB
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
# DevBoard — short commands so you don't have to remember the long ones.
# Run "make" to see this list.
help:
@echo ""
@echo "DevBoard commands:"
@echo " make setup create your .env file (first time only)"
@echo " make up build and start everything"
@echo " make down stop everything"
@echo " make logs watch the logs"
@echo " make ps show what is running"
@echo " make reset wipe the database and start fresh"
@echo " make smoke quick check that everything works"
@echo ""
setup:
@test -f .env || cp .env.example .env
@echo ".env is ready"
up: setup
docker compose up --build
down:
docker compose down
logs:
docker compose logs -f
ps:
docker compose ps
reset:
docker compose down -v
docker compose up --build
smoke:
@echo "backend health:"
curl -s http://localhost:8081/health
@echo ""
@echo "frontend page:"
curl -s -o /dev/null -w " HTTP %{http_code}\n" http://localhost:8080/
@echo "tasks from the database:"
curl -s "http://localhost:8080/api/tasks?project_id=1"
@echo ""
# These are command names, not files — so make always runs them.
.PHONY: help setup up down logs ps reset smoke