-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (27 loc) · 843 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
setup:
@echo "Setting up project..."
@make docker.up
@make backend.setup
@make frontend.setup
docker.up:
@echo "Starting docker..."
@docker compose up -d
docker.stop:
@echo "Stopping docker..."
@docker compose stop
docker.down:
@echo "Stopping and removing docker..."
@docker compose down
backend.setup:
@echo "Setting up backend..."
@docker compose exec php composer install
@docker compose exec php php bin/console doctrine:database:create --if-not-exists
@docker compose exec php php bin/console doctrine:migrations:migrate -n
@docker compose exec php php bin/console sylius:fixtures:load -n
frontend.setup:
@echo "Setting up frontend..."
@docker compose exec frontend npm install
@docker compose exec frontend npm run build
frontend.build:
@echo "Building frontend..."
@docker compose exec frontend npm run build