changed the way we reference Makefiles

This commit is contained in:
Fabien Potencier
2017-04-13 23:56:25 -07:00
parent 223b140bde
commit 99e56fc71e
3 changed files with 18 additions and 29 deletions
+14
View File
@@ -0,0 +1,14 @@
cache-clear:
@test -f bin/console && bin/console cache:clear --no-warmup || rm -rf var/cache/*
.PHONY: cache-clear
cache-warmup: cache-clear
@test -f bin/console && bin/console cache:warmup || echo "cannot warmup the cache (needs symfony/console)"
.PHONY: cache-warmup
serve:
@echo "\033[32;49mServer listening on http://127.0.0.1:8000\033[39m"
@echo "Quit the server with CTRL-C."
@echo "Run \033[32mcomposer require symfony/web-server-bundle\033[39m for a better web server"
php -S 127.0.0.1:8000 -t web
.PHONY: serve
@@ -16,22 +16,6 @@
"APP_DEBUG": "1",
"APP_SECRET": "%generate(secret)%"
},
"makefile": [
"cache-clear:",
"\t@test -f bin/console && bin/console cache:clear --no-warmup || rm -rf var/cache/*",
".PHONY: cache-clear",
"",
"cache-warmup: cache-clear",
"\t@test -f bin/console && bin/console cache:warmup || echo \"cannot warmup the cache (needs symfony/console)\"",
".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.\"",
"\t@echo \"Run \\033[32mcomposer require symfony/web-server-bundle\\033[39m for a better web server\"",
"\tphp -S 127.0.0.1:8000 -t web",
".PHONY: serve"
],
"gitignore": [
".env",
"/var/",