-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (46 loc) · 1.28 KB
/
Makefile
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
59
60
61
.PHONY: client start-redis celery server cli typecheck format
client:
@echo "Booting up the client..."
@cd client && npm start
build:
@echo "Building the server..."
@docker-compose -f docker-compose.local.yml build
up:
@echo "Booting up the server..."
@docker-compose -f docker-compose.local.yml up -d
logs:
@echo "Showing the server logs..."
@docker-compose -f docker-compose.local.yml logs -f
down:
@echo "Shutting down the server..."
@docker-compose -f docker-compose.local.yml down
kill:
@echo "Killing the server..."
@docker-compose -f docker-compose.local.yml kill
start-redis:
@echo "Booting up Redis..."
@redis-server
check-redis:
@echo "Checking Redis..."
@redis-cli ping
stop-redis:
@echo "Shutting down Redis..."
@redis-cli shutdown
celery:
@echo "Booting up Celery..."
@celery -A bereal.celery worker --loglevel=DEBUG --logfile=celery.log -E
flower:
@echo "Booting up Flower..."
@celery -A bereal.celery flower --address=0.0.0.0 --inspect --enable-events --loglevel=DEBUG --logfile=flower.log
server:
@echo "Booting up the server..."
@python -m bereal.server
cli:
@echo "Booting up the CLI..."
@python -m bereal.cli
typecheck:
@echo "Typechecking the code..."
@mypy bereal
format:
@echo "Formatting the code..."
@ruff check bereal && ruff format bereal