gofrp/Makefile
2025-03-21 19:47:54 +08:00

31 lines
735 B
Makefile

# 初始化 Git 仓库
.PHONY: git-init conf-init
git-init:
@if [ ! -d .git ]; then \
echo "Initializing git repository..."; \
git init; \
git add .; \
git commit -m "Initial commit"; \
else \
echo "Git repository already initialized."; \
fi
conf-init:
@echo "Copying configuration files..."
-@mkdir data
@cp -r ./src/conf data/
.PHONY: run-cli run-server run-all
run-cli:
@echo "Starting client services..."
@docker compose --profile client up -d --force-recreate --build
run-server:
@echo "Starting server services..."
@docker compose --profile server up -d --force-recreate --build
run-all:
@echo "Starting all services..."
@docker compose --profile server --profile client up -d --force-recreate --build