mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 15:46:37 +03:00
moved some logic to the Makefile to make it more robust and reusable
This commit is contained in:
@@ -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.\"",
|
||||
|
||||
Reference in New Issue
Block a user