forked from code4romania/war-support-un-acoperis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (44 loc) · 1.13 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
.PHONY: start
start:
docker-compose up -d
.PHONY: stop
stop:
docker-compose down
.PHONY: build
build:
docker-compose build
.PHONY: install
install:
$(shell test ! -e .env && cp .env.example .env)
docker-compose up -d
docker-compose exec php sh -c 'composer install'
docker-compose exec php sh -c 'php artisan migrate --seed'
docker-compose exec php sh -c 'php artisan key:generate'
docker-compose exec nodejs sh -c 'npm ci && npm run dev'
.PHONY: logs
logs:
docker-compose logs -f
.PHONY: shell
shell:
docker-compose exec php bash
.PHONY: migrate
migrate:
docker-compose exec php sh -c 'php artisan migrate'
.PHONY: migrate-f
migrate-f:
docker-compose exec php sh -c 'php artisan migrate --force'
.PHONY: migrate-stage
migrate-stage:
docker-compose -f docker-compose.stage.yml exec php sh -c 'php artisan migrate --force'
.PHONY: seed
seed:
docker-compose exec php sh -c 'php artisan db:seed'
.PHONY: cc
cc:
docker-compose exec php sh -c 'php artisan ca:cl'
.PHONY: generate-key
generate-key:
docker-compose exec php sh -c 'php artisan key:generate'
.PHONY: npm-watch
npm-watch:
docker-compose exec nodejs sh -c 'npm run watch'