-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (29 loc) · 1.32 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
down:
docker compose down
up:
docker compose up -d
rebuild:
docker compose up -d --build
migrar:
docker exec spotpeeker-backend python manage.py makemigrations
docker exec spotpeeker-backend python manage.py migrate
logs:
###### ######### ###### ###### ######### ############ ######### ############ ######### ######
###### ######### ###### ###### FRONTEN LOGS ############ ######### ############ #########
######### ###### ###### ######### ############ ######### ############ ######### ######
docker logs --tail=30 spotpeeker-frontend | tail -n 30
###### ######### ###### ###### ######### ############ ######### ############ ######### ######
###### ######### ###### ###### BACKEND LOGS ############ ######### ############ #########
######### ###### ###### ######### ############ ######### ############ ######### ######
docker logs --tail=30 spotpeeker-backend | tail -n 30
###### ######### ###### ###### ######### ############ ######### ############ ######### ######
###### ######### ###### ######################## ############ ######### ############ #########
######### ###### ###### ######### ############ ######### ############ ######### ######
off-off:
docker compose down
poweroff
commit-and-push:
read -p "Mensaje del commit: " mensaje; \
git add .; \
git commit -m "$$mensaje"; \
git push origin main