Skip to content
Extraits de code Groupes Projets
Valider 8ee27fe2 rédigé par nono's avatar nono
Parcourir les fichiers

Ouverture du serveur de test sur 0.0.0.0 pour les tests avec Vagrant

parent b0f3c2b5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
3 requêtes de fusion!162Testing with ansible vagran,!160Remove piplomes, update fix login, fix campaign presentation,!155Resolve "Configurer le fichier Vagrant pour les test en local"
......@@ -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
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter