view prod crash

main
Paul Schneider 9 years ago
parent 602db195fd
commit 9221a60435
1 changed files with 6 additions and 6 deletions

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

Loading…