-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (46 loc) · 1.01 KB
/
Makefile
File metadata and controls
55 lines (46 loc) · 1.01 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
#!make
include .env
local:
clear
uvicorn src.app:app --reload --host ${BACKEND_HOST} --port ${PORT}
prod:
clear
docker-compose stop
docker-compose down --remove-orphans
docker-compose up api-prod
dev:
clear
docker-compose stop
docker-compose down --remove-orphans
docker-compose up api-dev
docker-fresh-prod:
clear
$(info 🔰 Environment: PRODUCTION )
docker system prune -a -f
docker network prune -f
docker-compose stop
docker-compose down --remove-orphans
docker-compose up api-prod --build
docker-fresh-dev:
clear
$(info 🔰 Environment: Development 🔰)
docker system prune -a -f
docker network prune -f
docker-compose stop
docker-compose down --remove-orphans
docker-compose up api-dev --build
deploy:
clear
$(info ⏫ Pushing to Railway ⏫ )
git add .
git commit --allow-empty -m "Deploy"
git push
tidy:
clear
pip list --format="freeze" > requirements.txt
migrate:
clear
aerich migrate
clean: SHELL:=/bin/bash
clean:
find . | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf