-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
45 lines (32 loc) · 779 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
36
37
38
39
40
41
42
43
44
45
down:
@echo -
@echo - Drop 'data' folder to delete DB files /pg and redis/
@echo -
$(MAKE) env env=dev cmd=down
build:
docker-compose -f dc.common.yml -f dc.dev.yml build app
env:
docker-compose -f dc.common.yml -f dc.$(env).yml $(cmd)
env_up:
$(MAKE) env cmd=up
env_run:
$(MAKE) env cmd="run -p 3001:3000 --rm app \"$(cmd)\""
up:
$(MAKE) env_up env=dev
ci_up:
$(MAKE) env env=ci cmd="up -d"
run:
$(MAKE) env_run env=dev cmd="$(cmd)"
ci_run:
$(MAKE) env_run env=ci cmd="$(cmd)"
test:
$(MAKE) run cmd=bin/rspec
lint:
$(MAKE) run cmd="standardrb --format github"
ci_test:
$(MAKE) ci_run cmd=bin/rspec
console:
$(MAKE) run cmd="bin/rails console"
setup:
$(MAKE) run cmd="bin/rails dev:cache"
$(MAKE) run cmd="bin/rails db:setup RAILS_ENV=development"