-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (45 loc) · 1.08 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
SAIL_PATH=@./vendor/bin/sail
default: env composer-install up key-generate storage-link npm-install
@echo "Your environment is ready to use! Access http://laravel.test and enjoy it!"
.PHONY: up
up:
@echo "Starting all docker containers"
$(SAIL_PATH) up --force-recreate -d
.PHONY: down
down:
@echo "Stopping all docker containers"
$(SAIL_PATH) down
.PHONY: restart
restart: down up
.PHONY: env
env:
@echo "Copying .env.example to .env file"
@cp .env.example .env
.PHONY: composer-install
composer-install:
@echo "Installing composer dependencies"
@sh ./bin/prepare.sh
.PHONY: npm-install
npm-install:
@echo "Installing npm dependencies"
$(SAIL_PATH) npm install
.PHONY: key-generate
key-generate:
@echo "Generating new laravel key"
$(SAIL_PATH) art key:generate
.PHONY: storage-link
storage-link:
@echo "Generating storage link"
$(SAIL_PATH) art storage:link
.PHONY: queue
queue:
@echo "Starting queue"
$(SAIL_PATH) art queue:work
.PHONY: npm-dev
npm-dev:
@echo "Running npm dev"
$(SAIL_PATH) npm run dev
.PHONY: test
test:
@echo "Running all tests"
$(SAIL_PATH) art test