view prod crash
This commit is contained in:
parent
59b295ba6a
commit
7bdd97a4f2
1 changed files with 6 additions and 6 deletions
|
|
@ -41,12 +41,12 @@ pushInPre: bin/output/wwwroot/version
|
||||||
|
|
||||||
pushInProd: bin/output/wwwroot/version
|
pushInProd: bin/output/wwwroot/version
|
||||||
ifeq ($(git_status),0)
|
ifeq ($(git_status),0)
|
||||||
@ssh root@localhost systemctl stop kestrel
|
ssh root@localhost systemctl stop kestrel
|
||||||
@ssh root@localhost rm -rf $(PRODDESTDIR)/approot
|
ssh root@localhost rm -rf $(PRODDESTDIR)/approot
|
||||||
@(cd bin/output && rsync -ravu ./ root@localhost:$(PRODDESTDIR) >/dev/null)
|
(cd bin/output && rsync -ravu ./ root@localhost:$(PRODDESTDIR) >/dev/null)
|
||||||
@ssh root@localhost sync
|
ssh root@localhost sync
|
||||||
@ssh root@localhost systemctl start kestrel
|
ssh root@localhost systemctl start kestrel
|
||||||
else
|
else
|
||||||
@echo Err! Refus de pousser en production: des changements doivent être validés auprès du contrôle de versions.
|
@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
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue