moved some logic to the Makefile to make it more robust and reusable

This commit is contained in:
Fabien Potencier
2017-03-20 17:21:17 -07:00
parent ba94907828
commit 3cd2b977ae
@@ -8,8 +8,7 @@
"web/": "%WEB_DIR%/"
},
"composer-scripts": {
"cache:clear --no-warmup": "symfony-cmd",
"cache:warmup": "symfony-cmd",
"make cache-warmup": "script",
"assets:install --symlink --relative %WEB_DIR%": "symfony-cmd"
},
"env": {
@@ -18,6 +17,12 @@
"APP_SECRET": "Ju$tChang3it!"
},
"makefile": [
"cache-clear:",
"\t@bin/console cache:clear --no-warmup",
".PHONY: cache-clear",
"cache-warmup: cache-clear",
"\t@bin/console cache:warmup",
".PHONY: cache-warmup",
"serve:",
"\t@echo \"\\033[32;49mServer listening on http://127.0.0.1:8000\\033[39m\"",
"\t@echo \"Quit the server with CTRL-C.\"",