suivi/Makefile
Simon Vieille aa756a9fc4
All checks were successful
ci/woodpecker/push/build Pipeline was successful
fix php version in makefile
2025-02-05 15:29:51 +01:00

30 lines
513 B
Makefile

COMPOSER_BIN ?= composer
PHP_BIN ?= php8.1
SSH_BIN ?= ssh
YARN_BIN ?= yarn
NPM_BIN ?= npm
all: build
asset-watch:
$(YARN_BIN)
$(NPM_BIN) run watch
asset: js-routing
$(YARN_BIN)
$(NPM_BIN) run build
js-routing: doctrine-migration
$(PHP_BIN) 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) ./bin/doctrine-migrate
build: clean js-routing asset
deploy-prod:
mage deploy prod