view prod crash

This commit is contained in:
2017-06-09 00:46:06 +02:00
parent 602db195fd
commit 9221a60435

View File

@ -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