-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (41 loc) · 1.3 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
build: docker-build
up: docker-up
down: docker-down
restart: docker-down docker-up
init: docker-build docker-up bundle-install wait-db setup-db
reinit: docker-down-all docker-build docker-up bundle-install wait-db setup-db
docker-build:
docker compose build --no-cache
docker-up:
docker-compose up -d
docker-down:
docker-compose down --remove-orphans
docker-down-all:
docker-compose down -v --remove-orphans
bundle-install:
docker-compose exec -T health-keeper-app ./bin/bundle install
bundle-add:
docker-compose exec -T health-keeper-app ./bin/bundle add $(gem)
routes:
docker-compose exec -T health-keeper-app rails routes
generate:
docker-compose exec -T health-keeper-app rails generate $(options)
wait-db:
until docker-compose exec -T health-keeper-postgres pg_isready --timeout=0 --dbname=app ; do sleep 1 ; done
migrate-db:
docker-compose exec -T health-keeper-app rails db:migrate
setup-db:
docker-compose exec -T health-keeper-app rails db:setup
reset-db:
docker-compose exec -T health-keeper-app rails db:reset
seed-db:
docker-compose exec -T health-keeper-app rails db:seed
sh:
docker-compose exec $(c) sh
logs:
docker-compose logs --tail=0 --follow
test:
docker-compose exec -T health-keeper-app rspec
options ?=
rubocop:
docker-compose exec -T health-keeper-app rubocop $(options)