-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 817 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 817 Bytes
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
.PHONY: build up open down
start: build up open
build:
@docker build -t fullstack-backend:latest -f backend/Dockerfile backend/
@docker build -t fullstack-frontend:latest -f frontend/Dockerfile frontend/
up:
@docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --remove-orphans
down:
@docker compose down
open:
@if command -v xdg-open > /dev/null 2>&1; then \
xdg-open http://localhost:3000 2>/dev/null & \
elif command -v open > /dev/null 2>&1; then \
open http://localhost:3000; \
elif command -v wslview > /dev/null 2>&1; then \
wslview http://localhost:3000; \
elif command -v cmd.exe > /dev/null 2>&1; then \
cmd.exe /c start http://localhost:3000; \
else \
echo "❌ Could not detect browser launcher."; \
echo "📍 Please open http://localhost:3000 manually"; \
fi