removed Makefile support (#215)

This commit is contained in:
Fabien Potencier
2017-10-16 16:05:06 -07:00
committed by Symfony
parent 5ae47fd7d4
commit 82e8cf1a6d
4 changed files with 5 additions and 64 deletions
-40
View File
@@ -1,40 +0,0 @@
CONSOLE := $(shell which bin/console)
sf_console:
ifndef CONSOLE
@printf "Run \033[32mcomposer require cli\033[39m to install the Symfony console.\n"
endif
cache-clear: ## Clears the cache
ifdef CONSOLE
@bin/console cache:clear --no-warmup
else
@rm -rf var/cache/*
endif
.PHONY: cache-clear
cache-warmup: cache-clear ## Warms up an empty cache
ifdef CONSOLE
@bin/console cache:warmup
else
@printf "Cannot warm up the cache (needs symfony/console).\n"
endif
.PHONY: cache-warmup
serve_as_sf: sf_console
ifndef CONSOLE
@${MAKE} serve_as_php
endif
@bin/console list | grep server:start > /dev/null || ${MAKE} serve_as_php
@bin/console server:start
@printf "Quit the server with \033[32;49mbin/console server:stop\033[39m\n"
serve_as_php:
@printf "\033[32;49mServer listening on http://127.0.0.1:8000\033[39m\n"
@printf "Quit the server with CTRL-C.\n"
@printf "Run \033[32mcomposer require symfony/web-server-bundle\033[39m for a better web server.\n"
php -S 127.0.0.1:8000 -t public
serve: ## Runs a local web server
@${MAKE} serve_as_sf
.PHONY: sf_console serve serve_as_sf serve_as_php
@@ -4,7 +4,10 @@
* <fg=blue>Run</> your application:
1. Change to the project directory
2. Execute the <comment>make serve</> command;
2. Execute the <comment>php -S 127.0.0.1:8000 -t public</> command;
3. Browse to the <comment>http://localhost:8000/</> URL.
Quit the server with CTRL-C.
Run <bg=yellow>composer require symfony/web-server-bundle</> for a better web server.
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</>