This repository was archived by the owner on May 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (40 loc) · 1.26 KB
/
Makefile
File metadata and controls
53 lines (40 loc) · 1.26 KB
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
ifeq ($(LOCAL_UID),)
export LOCAL_UID = $(shell id -u)
endif
ifeq ($(COMPOSE_PROJECT_NAME),)
export COMPOSE_PROJECT_NAME = volops
endif
build:
docker-compose -f docker-compose.yml build --no-cache
docker-compose run web rails db:create
docker-compose run web rails db:schema:load
run-dev:
rm -f tmp/pids/server.pid > /dev/null 2>&1
docker-compose -f docker-compose.yml up
bundle-install:
docker-compose run web bundle install
docker-compose run web yarn install
run-dev-detached:
docker-compose -f docker/docker-compose.yml up -d
make-migrations:
docker-compose run web rails db:migrate
docker-kill-all:
docker-compose -f docker/docker-compose.yml kill
docker-rm-all:
docker-compose -f docker/docker-compose.yml rm -v -f
rspec:
docker-compose run web rspec
clean:
docker system prune -f
docker-compose -f docker-compose.yml rm -sf
docker-compose -f docker-compose.yml build --no-cache
docker-compose run web bundle install
docker-compose run web yarn install
clean-db:
@echo 'Removing database data volume'
docker volume prune -f
docker-compose -f docker-compose.yml rm -sf
docker-compose -f docker-compose.yml build --no-cache
docker-compose run web rails db:schema:load
docker-compose run web bundle install
docker-compose run web yarn install