You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

37 lines
741 B

COMPOSER ?= composer
PHP ?= php7.4
SSH ?= ssh
WEBPACK ?= webpack
YARN ?= yarn
all: dep asset clean
.ONESHELL:
dep:
$(COMPOSER) update --ignore-platform-reqs
$(COMPOSER) install --ignore-platform-reqs
$(YARN)
asset-watch:
$(WEBPACK) -w
asset: js-routing
$(YARN)
$(WEBPACK)
js-routing:
$(PHP) bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
clean:
rm -fr var/cache/dev/*
rm -fr var/cache/prod/*
doctrine-migration:
PHP=$(PHP) ./bin/doctrine-migrate
deploy-prod:
mage deploy prod
ssh webdeblanio@asuka "cd blog && make clean"
ssh webdeblanio@asuka "cd blog && make js-routing"
ssh webdeblanio@asuka "cd blog && npm run build"
ssh webdeblanio@asuka "cd blog && make doctrine-migration"