File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
symfony/framework-bundle/3.3 Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,13 @@ cache-warmup: cache-clear
7
7
.PHONY : cache-warmup
8
8
9
9
serve :
10
- @echo -e " \033[32;49mServer listening on http://127.0.0.1:8000\033[39m"
11
- @echo " Quit the server with CTRL-C."
12
- @echo -e " Run \033[32mcomposer require symfony/web-server-bundle\033[39m for a better web server"
13
- php -S 127.0.0.1:8000 -t web
10
+ @if [ -a bin/console ] && [[ ` bin/console list server | grep server:start` ]]; then \
11
+ bin/console server:start; \
12
+ echo -e " Quit the server with \033[32;49mbin/console server:stop.\033[39m" ; \
13
+ else \
14
+ echo -e " \033[32;49mServer listening on http://127.0.0.1:8000\033[39m" ; \
15
+ echo " Quit the server with CTRL-C." ; \
16
+ echo -e " Run \033[32mcomposer require symfony/web-server-bundle\033[39m for a better web server" ; \
17
+ php -S 127.0.0.1:8000 -t web; \
18
+ fi
14
19
.PHONY : serve
You can’t perform that action at this time.
0 commit comments