-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 741 Bytes
/
Makefile
File metadata and controls
41 lines (30 loc) · 741 Bytes
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
install:
docker compose build
docker compose run --rm app sh -c "cd openapi && npm install"
make run-app rake db:prepare
make run-app rake db:test:prepare
start:
docker compose up
test:
make run-app rspec $(filter-out $@, $(MAKECMDGOALS))
console: # quotes prevent recursion for 'console'
make run-app 'rails console'
shell:
make run-app /bin/bash
openapi-compile:
docker compose run --rm app sh -c "cd openapi && npm run compile"
# General
run-app:
docker compose run --rm app $(filter-out $@, $(MAKECMDGOALS))
# Shortcuts
i: install
s: start
c: console
sh: shell
r:
make run-app $(filter-out $@, $(MAKECMDGOALS))
t:
make run-app rspec $(filter-out $@, $(MAKECMDGOALS))
# Prevent errors when passing arguments
%:
@: