Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
DOCKER_COMPOSE := $(shell command -v docker-compose 2>/dev/null && echo "docker-compose" || echo "docker compose")
APP = $(DOCKER_COMPOSE) exec -t app

up:
$(DOCKER_COMPOSE) up -d

start:
$(DOCKER_COMPOSE) up --build -d

down:
$(DOCKER_COMPOSE) down

app-bash:
$(DOCKER_COMPOSE) exec -t app bash

cc:
$(APP) php bin/console cache:clear

migrate:
$(APP) php bin/console doctrine:migrations:migrate --no-interaction

parse:
$(APP) bash -c "php bin/console app:parse-invoices data/invoices_*"

install:
$(APP) composer install

update:
$(APP) composer update

test:
$(APP) php vendor/bin/phpunit tests/Unit
Loading