2015-05-06 10:58:55 +02:00
|
|
|
COMPOSER ?= composer
|
2018-08-08 12:41:08 +02:00
|
|
|
NPM ?= npm
|
2015-05-09 17:42:53 +02:00
|
|
|
GIT ?= git
|
|
|
|
MKDIR ?= mkdir
|
2015-09-17 11:41:32 +02:00
|
|
|
PHP ?= php
|
2018-09-11 13:41:43 +02:00
|
|
|
RM ?= rm
|
2015-05-06 10:58:55 +02:00
|
|
|
|
2018-09-11 13:22:40 +02:00
|
|
|
all: update clean-cache
|
2015-05-06 10:58:55 +02:00
|
|
|
|
|
|
|
composer:
|
2018-08-08 12:41:08 +02:00
|
|
|
@echo "Installing PHP dependencies"
|
|
|
|
@echo "---------------------------"
|
|
|
|
@echo
|
2015-09-17 11:41:32 +02:00
|
|
|
|
2018-09-11 13:41:43 +02:00
|
|
|
${COMPOSER} install
|
2018-09-11 13:22:40 +02:00
|
|
|
|
2018-08-08 12:41:08 +02:00
|
|
|
npm:
|
|
|
|
@echo "Installing CSS/JS dependencies"
|
|
|
|
@echo "------------------------------"
|
|
|
|
@echo
|
2015-09-17 11:41:32 +02:00
|
|
|
|
2018-09-11 13:41:43 +02:00
|
|
|
${NPM} install
|
2015-05-06 10:58:55 +02:00
|
|
|
|
|
|
|
update:
|
2015-09-17 11:41:32 +02:00
|
|
|
@echo "Updating application's dependencies"
|
|
|
|
@echo "-----------------------------------"
|
2018-08-08 12:41:08 +02:00
|
|
|
@echo
|
2015-09-17 11:41:32 +02:00
|
|
|
|
2018-09-11 13:41:43 +02:00
|
|
|
${GIT} pull origin master
|
2015-05-09 17:42:53 +02:00
|
|
|
${MKDIR} -p data/git
|
2018-08-20 16:40:04 +02:00
|
|
|
${MKDIR} -p data/cache
|
2018-09-11 13:41:43 +02:00
|
|
|
${COMPOSER} update
|
|
|
|
${NPM} install
|
2015-05-09 17:42:53 +02:00
|
|
|
|
2018-09-11 13:22:40 +02:00
|
|
|
clean-cache:
|
|
|
|
@echo "Removing cache"
|
|
|
|
@echo "--------------"
|
|
|
|
@echo
|
|
|
|
|
2018-09-11 13:41:43 +02:00
|
|
|
${RM} -fr cache/*
|
2018-09-11 13:22:40 +02:00
|
|
|
|
2015-09-17 11:41:32 +02:00
|
|
|
run:
|
|
|
|
@echo "Run development server"
|
|
|
|
@echo "----------------------"
|
2018-08-08 12:41:08 +02:00
|
|
|
@echo
|
2015-09-17 11:41:32 +02:00
|
|
|
|
2018-09-11 13:41:43 +02:00
|
|
|
${PHP} -S 127.0.0.1:8080 -t web
|
2015-09-17 11:41:32 +02:00
|
|
|
|
2015-05-09 17:42:53 +02:00
|
|
|
propel:
|
2015-09-17 11:41:32 +02:00
|
|
|
@echo "Propel migration"
|
|
|
|
@echo "----------------"
|
2018-08-08 12:41:08 +02:00
|
|
|
@echo
|
|
|
|
|
2015-05-09 17:42:53 +02:00
|
|
|
./vendor/propel/propel/bin/propel config:convert
|
|
|
|
./vendor/propel/propel/bin/propel model:build --recursive
|
|
|
|
./vendor/propel/propel/bin/propel migration:diff --recursive
|
|
|
|
./vendor/propel/propel/bin/propel migration:migrate --recursive
|