-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
35 lines (25 loc) · 876 Bytes
/
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
WEB_CONTAINER := `docker compose ps | grep web | cut -d ' ' -f1`
target: project
project:
docker compose ps | grep -E '.web.[1-9].*(Up|running)' || docker compose up -d
bind: project
docker attach $(WEB_CONTAINER)
rc: project
docker compose exec -it web rails console
ash: project
docker compose exec -it web ash
psql: project
docker compose exec -it db psql -U postgres s95_dev
checkup:
rubocop --display-only-fail-level-offenses --fail-level=error && \
rubocop --only Lint/Debugger
build:
docker compose run --rm web bundle lock
docker compose build web
docker images --filter "dangling=true" -q | xargs docker rmi > /dev/null 2>&1 || echo "\nThere were images tagged as <none> in use"
clean_logs:
rm ./log/capistrano.log
touch ./log/capistrano.log
rm ./log/bullet.log
touch ./log/bullet.log
.PHONY: project bind rc ash psql checkup build clean_logs