-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (34 loc) · 916 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
46
47
48
49
project = schutzstreifen
docker = docker-compose -p $(project) -f docker-compose.yml
build_run = $(docker) run --rm build
buffalo_env ?= development
build_arguments ?=
task ?=
setup: build-containers install-plugins reset-db migrate css
install-plugins:
$(build_run) plugins install
create-db:
$(build_run) pop create -e $(buffalo_env)
reset-db:
$(build_run) pop reset -e $(buffalo_env)
drop-db:
$(build_run) pop drop -e $(buffalo_env)
migrate:
$(build_run) pop migrate -e $(buffalo_env)
start:
$(docker) up -d app
start-dev:
$(docker) up app
stop:
$(docker) down
restart: stop start
build-containers:
$(docker) -f docker-compose.yml build $(build_arguments)
test:
-$(build_run) test
css:
$(docker) run --rm --entrypoint sassc build -t compressed public/assets/scss/application.scss public/assets/application.css
cli:
$(docker) exec app bash
task:
$(docker) exec app buffalo task $(task)