-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 690 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 690 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
COMPOSE=docker-compose
RUN=$(COMPOSE) run --rm tools
COMPOSER=composer
SYMFONY=bin/console
all: configure start install
configure:
@touch ./data/.bash_history
@echo "WWW_DATA_UID=`id -u`\nWWW_DATA_GUID=`id -g`\nLOCAL_IP=`ip route get 1 | awk '{print $$NF;exit}'`" | tee docker/settings/env_access > /dev/null
$(COMPOSE) build
start:
$(COMPOSE) up -d
install: composer
composer:
$(RUN) $(COMPOSER) install --no-interaction --prefer-dist
#migrate:
# $(RUN) "$(SYMFONY) doctrine:database:drop --force ; $(SYMFONY) do:da:cr ; $(SYMFONY) doctrine:migration:migrate --no-interaction
#
#fixtures:
# $(RUN) $(SYMFONY) fixtures:load --no-interaction"
#
#cs:
# $(RUN) bin/php-cs-fixer fix