forked from icarojobs/freezer-control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (32 loc) · 882 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
default: env prepare up key-generate populate
@echo "--> Your environment is ready to use! Access http://laravel.test and enjoy it!"
.PHONY: env
env:
@echo "--> Copying .env.example to .env file"
@cp .env.example .env
.PHONY: prepare
prepare:
@echo "--> Installing composer dependencies..."
@sh ./bin/prepare.sh
.PHONY: up
up:
@echo "--> Starting all docker containers..."
@./vendor/bin/sail up --force-recreate -d
@./vendor/bin/sail art storage:link
.PHONY: key-generate
key-generate:
@echo "--> Generating new laravel key..."
@./vendor/bin/sail art key:generate
.PHONY: populate
populate:
@echo "--> Populating all table and data of project..."
@./vendor/bin/sail art migrate:fresh --seed
.PHONY: down
down:
@echo "--> Stopping all docker containers..."
@./vendor/bin/sail down
.PHONY: restart
restart: down up
.PHONY: play
play:
@./vendor/bin/sail art play