-
-
Notifications
You must be signed in to change notification settings - Fork 87
/
Makefile
58 lines (45 loc) · 1.05 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
dev_env:
docker-compose up --detach web delayed_job
@echo -
@echo - Services started! Watch development logs with 'make watch'.
@echo -
minty_fresh: nuke schema_migrate dev_env
watch:
docker-compose logs --follow web delayed_job
console:
docker-compose run --rm console
test: spec lint brakeman
spec: schema_migrate
@echo -
@echo - Running specs!
@echo -
docker-compose run --rm rspec
lint:
@echo -
@echo - Running Rubocop!
@echo -
docker-compose run --rm rubocop
brakeman:
@echo -
@echo - Running Brakeman!
@echo -
docker-compose run --rm brakeman
database_started:
@echo - Starting up database.
docker-compose up --detach db
schema_migrate: database_started
@echo -
@echo - Applying any pending migrations.
@echo -
docker-compose run --rm schema_migrate
schema_status:
docker-compose run --rm pending_migrations
database_seeds: schema_migrate
docker-compose run --rm seeds
build:
docker-compose build app
nuke:
@echo -
@echo - Stopping and destroying development services and database.
@echo -
docker-compose down --volumes