forked from DNA-BarKeeper/barkeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (25 loc) · 762 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
secret:
@echo "Generating a secret key..."
@docker-compose run --user "$(id -u):$(id -g)" app rails secret
install:
@echo "Installing BarKeeper..."
@echo "Setting up database..."
@docker-compose run --user "$(id -u):$(id -g)" app rails db:reset
@echo "Precompiling assets..."
@docker-compose run --user "$(id -u):$(id -g)" app rails assets:precompile
@echo "Starting BarKeeper..."
@docker-compose up -d
start:
@echo "Starting BarKeeper..."
@docker-compose up -d
stop:
@echo "Stopping BarKeeper..."
@docker-compose down
remove:
@echo "Removing BarKeeper containers..."
@docker-compose rm -s -v -f
restart: remove start
start-dev:
@echo "Starting BarKeeper in Development environment..."
@docker-compose up
restart-dev: remove start-dev