-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 864 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 864 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
28
29
30
31
32
33
34
APP_URL ?= http://localhost:5173
.PHONY: build up open down dev-up dev-down
start: build up open
build:
@docker compose -f docker-compose.yml -f docker-compose.dev.yml build
up:
@docker compose -f docker-compose.yml up -d
dev:
@docker compose -f docker-compose.dev.yml up --build -d
down:
@docker compose -f docker-compose.yml -f docker-compose.dev.yml down
logs:
@docker compose -f docker-compose.dev.yml logs --follow
open:
@if command -v xdg-open > /dev/null 2>&1; then \
xdg-open $(APP_URL) 2>/dev/null & \
elif command -v open > /dev/null 2>&1; then \
open $(APP_URL); \
elif command -v wslview > /dev/null 2>&1; then \
wslview $(APP_URL); \
elif command -v cmd.exe > /dev/null 2>&1; then \
cmd.exe /c start $(APP_URL); \
else \
echo "❌ Could not detect browser launcher."; \
echo "📍 Please open $(APP_URL) manually"; \
fi