-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (46 loc) · 998 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
migration:
docker-compose run app "rails db:migrate"
upgrade:
docker-compose run app "rake decidim:upgrade"
create:
docker-compose run app "rake db:create"
up:
docker-compose up
prod:
docker-compose -f docker-compose.prod.yml up
build:
docker-compose build --compress --parallel
drop:
docker-compose run app "rake db:drop"
setup:
docker-compose run app "rake db:create db:migrate"
seed:
docker-compose run app "SEED=true rake db:seed"
precompile:
docker-compose run app "RAILS_ENV=production rails assets:precompile"
cache:
docker-compose run app "rails tmp:cache:clear assets:clobber"
ssh:
docker-compose run app /bin/bash
local-bundle:
bundle install
stop-all:
docker stop $$(docker ps -q -a)
prune:
@make stop-all
docker volume prune
bump:
@make local-bundle
@make build
@make upgrade
@make migration
@make cache
@make precompile
@make prod
init:
@make create
@make migration
@make upgrade
@make seed
build-no-cache:
docker-compose build --no-cache