From 8ee27fe2e713cf54f38ef45d3dd4699f8da9e130 Mon Sep 17 00:00:00 2001
From: nono <social@n07070.xyz>
Date: Mon, 14 Feb 2022 12:46:12 +0100
Subject: [PATCH] Ouverture du serveur de test sur 0.0.0.0 pour les tests avec
 Vagrant

---
 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index b6e2ce9..4deb0b5 100644
--- a/Makefile
+++ b/Makefile
@@ -67,12 +67,12 @@ coverage: ## Launch functional tests with coverage.
 	@./vendor/bin/codecept run functional --coverage-html
 
 server-start: server-stop ## Launch a local server
-	@php -S 127.0.0.1:8000 -t ./www/ >> ./log/server.log &
-	@echo "\033[32mServer running. (http://127.0.0.1:8000)\033[0m"
+	@php -S 0.0.0.0:8000 -t ./www/ >> ./log/server.log &
+	@echo "\033[32mServer running. (http://0.0.0.0:8000)\033[0m"
 
 server-stop: ## Stop local server if running
-	-@ps -aux | grep "[p]hp -S 127.0.0.1:8000" | grep -v grep | awk '{print $$2}' | xargs -r -n 1 kill
-	@echo "\033[32mServer stopped. (http://127.0.0.1:8000)\033[0m"
+	-@ps -aux | grep "[p]hp -S 0.0.0.0:8000" | grep -v grep | awk '{print $$2}' | xargs -r -n 1 kill
+	@echo "\033[32mServer stopped. (http://0.0.0.0:8000)\033[0m"
 
 cs-fix: ## Fix CS
 	@vendor/bin/php-cs-fixer fix
-- 
GitLab