forked from dewitt4/github-process-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (43 loc) · 1.62 KB
/
Makefile
File metadata and controls
58 lines (43 loc) · 1.62 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
48
49
50
51
52
53
54
55
56
57
58
.PHONY: help build up down logs shell clean rebuild test
help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Available targets:'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
build: ## Build Docker image
docker-compose build
up: ## Start application in development mode
docker-compose up -d
@echo "Application started at http://localhost:5000"
up-prod: ## Start application in production mode
docker-compose -f docker-compose.prod.yml up -d
@echo "Application started at http://localhost:5000"
down: ## Stop application
docker-compose down
logs: ## View application logs
docker-compose logs -f app
shell: ## Access container shell
docker-compose exec app /bin/bash
clean: ## Stop and remove containers, volumes, and images
docker-compose down -v
docker rmi github-process-manager_app 2>/dev/null || true
rebuild: ## Rebuild and restart application
docker-compose up -d --build
@echo "Application rebuilt and started at http://localhost:5000"
restart: ## Restart application
docker-compose restart app
status: ## Show container status
docker-compose ps
test: ## Run tests (placeholder)
docker-compose exec app python -m pytest tests/
install: ## Install dependencies locally (non-Docker)
pip install -r requirements.txt
run-local: ## Run application locally (non-Docker)
python app.py
setup: ## Initial setup - copy .env.template to .env
@if [ ! -f .env ]; then \
cp .env.template .env; \
echo ".env file created. Please edit it with your API keys."; \
else \
echo ".env file already exists."; \
fi