-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathJustfile
39 lines (28 loc) · 899 Bytes
/
Justfile
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
start:
docker compose up -d
restart container="web":
docker compose restart {{ container }}
spec file="":
if [ -z {{ file }} ]; then \
docker compose run --rm spec; \
else \
docker compose run --rm spec bundle exec rspec {{ file }}; \
fi
lint:
bin/rubocop --autocorrect
pre-setup:
docker compose run --rm pre-setup
rails +command="console":
docker exec -it tramline-web-1 bundle exec rails {{ command }}
rake +command:
docker exec -it tramline-web-1 bundle exec rake {{ command }}
bundle +command:
docker exec -it tramline-web-1 bundle {{ command }}
devlog log_lines="1000":
tail -f -n {{ log_lines }} log/development.log
bglog log_lines="100":
tail -f -n {{ log_lines }} log/sidekiq.log
attach container="web":
docker attach --detach-keys "ctrl-d" tramline-{{ container }}-1
shell container="web":
docker exec -it tramline-{{ container }}-1 /bin/bash