From 9221a60435e016d205da757e6a54ca5a4a3fc6f5 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 9 Jun 2017 00:46:06 +0200 Subject: [PATCH] view prod crash --- Yavsc/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Yavsc/Makefile b/Yavsc/Makefile index 12d39ea1..13947306 100644 --- a/Yavsc/Makefile +++ b/Yavsc/Makefile @@ -41,12 +41,12 @@ pushInPre: bin/output/wwwroot/version pushInProd: bin/output/wwwroot/version ifeq ($(git_status),0) - @ssh root@localhost systemctl stop kestrel - @ssh root@localhost rm -rf $(PRODDESTDIR)/approot - @(cd bin/output && rsync -ravu ./ root@localhost:$(PRODDESTDIR) >/dev/null) - @ssh root@localhost sync - @ssh root@localhost systemctl start kestrel + ssh root@localhost systemctl stop kestrel + ssh root@localhost rm -rf $(PRODDESTDIR)/approot + (cd bin/output && rsync -ravu ./ root@localhost:$(PRODDESTDIR) >/dev/null) + ssh root@localhost sync + ssh root@localhost systemctl start kestrel else @echo Err! Refus de pousser en production: des changements doivent être validés auprès du contrôle de versions. - @git status + git status endif