-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·66 lines (50 loc) · 1.5 KB
/
Makefile
File metadata and controls
executable file
·66 lines (50 loc) · 1.5 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
59
60
61
62
63
64
65
66
build:
@echo "Starting building containers"
docker compose build
@echo "Containers built"
up:
@echo "Starting containers"
docker compose up -d
@echo "Containers started"
stop:
@echo "Starting stopping containers"
docker compose stop
@echo "Containers stopped"
down:
@echo "Starting removing containers"
docker compose down
@echo "Containers removed"
logs:
@echo "Starting logs"
docker compose logs backend
uninstall:
@echo "Starting removing containers"
docker compose down
@echo "Containers removed"
@echo "Started removing instalation file"
rm -rf backend/sharkservers/installed
@echo "Instalation file removed"
install:
@echo "Staring database container"
docker compose up -d
sleep 2
docker compose exec backend alembic upgrade head
# docker compose exec jailbreak_backend alembic upgrade head
sleep 2
@curl -X POST http://localhost:8080/install \
-H 'Content-Type: application/json' \
-d '{"username":"Qwizi","email":"test@test.pl", "password":"test123456", "password2":"test123456"}'
@echo "Instalation finished"
test:
docker compose exec backend pytest -vv
generate:
curl -X GET http://localhost:8080/generate-openapi
cd ../sharkservers-js-client && npm run generate-client
migration:
docker compose exec backend alembic revision --autogenerate
upgrade:
docker compose exec backend alembic upgrade head
clear-avatars:
find static/uploads/avatars -maxdepth 1 -type f ! -name 'index.html' -exec rm -rf {} +
random-data:
@curl -X GET http://localhost:8080/generate-random-data