-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 893 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 893 Bytes
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
UID := $(shell id -u)
.PHONY: start
start: cp-env build install-deps
docker compose up -d
.PHONY: cp-env
cp-env:
@cp -n .env.dist .env || true
.PHONY: build
build:
docker compose build
.PHONY: install-deps
install-deps:
docker compose run --rm --user=$(UID) php composer install
.PHONY: database-migrate
database-migrate:
docker compose run --rm --user=$(UID) php bin/console doctrine:migrations:migrate
.PHONY: database-create
database-create:
docker compose run --rm --user=$(UID) php bin/console doctrine:database:create --if-not-exists
.PHONY: database-drop
database-drop:
docker compose run --rm --user=$(UID) php bin/console doctrine:database:drop --if-exists --force
.PHONY: fixtures-load
fixtures-load:
docker compose run --rm --user=$(UID) php bin/console doctrine:fixtures:load
.PHONY: reset-db
reset-db: database-drop database-create database-migrate fixtures-load