refactorisation
This commit is contained in:
parent
cd5a18fac3
commit
192a921a69
1 changed files with 8 additions and 8 deletions
|
|
@ -48,19 +48,19 @@ bin/output/wwwroot/version: bin/output
|
||||||
@git log -1 --pretty=format:%h > bin/output/wwwroot/version
|
@git log -1 --pretty=format:%h > bin/output/wwwroot/version
|
||||||
|
|
||||||
pushInPre: cleanoutput bin/output/wwwroot/version
|
pushInPre: cleanoutput bin/output/wwwroot/version
|
||||||
ssh $(HOSTADMIN)@$(HOSTING) service kestrel-pre stop
|
ssh $(HOSTADMIN)@$(HOSTING) sudo service kestrel-pre stop
|
||||||
ssh $(HOSTADMIN)@$(HOSTING) rm -rf $(DESTDIR)/approot
|
ssh $(HOSTADMIN)@$(HOSTING) sudo rm -rf $(DESTDIR)/approot
|
||||||
(cd bin/output && rsync -ravu ./ $(HOSTADMIN)@$(HOSTING):$(DESTDIR) >/dev/null)
|
(cd bin/output && rsync -ravu ./ $(HOSTADMIN)@$(HOSTING):$(DESTDIR) >/dev/null)
|
||||||
ssh $(HOSTADMIN)@$(HOSTING) sync
|
ssh $(HOSTADMIN)@$(HOSTING) sudo sync
|
||||||
ssh $(HOSTADMIN)@$(HOSTING) service kestrel-pre start
|
ssh $(HOSTADMIN)@$(HOSTING) sudo service kestrel-pre start
|
||||||
|
|
||||||
pushInProd: cleanoutput bin/output/wwwroot/version
|
pushInProd: cleanoutput bin/output/wwwroot/version
|
||||||
ifeq ($(git_status),0)
|
ifeq ($(git_status),0)
|
||||||
ssh $(HOSTADMIN)@$(HOSTING) service kestrel stop
|
ssh $(HOSTADMIN)@$(HOSTING) sudo service kestrel stop
|
||||||
ssh $(HOSTADMIN)@$(HOSTING) rm -rf $(PRODDESTDIR)/approot
|
ssh $(HOSTADMIN)@$(HOSTING) sudo rm -rf $(PRODDESTDIR)/approot
|
||||||
(cd bin/output && rsync -ravu ./ $(HOSTADMIN)@$(HOSTING):$(PRODDESTDIR) >/dev/null)
|
(cd bin/output && rsync -ravu ./ $(HOSTADMIN)@$(HOSTING):$(PRODDESTDIR) >/dev/null)
|
||||||
ssh $(HOSTADMIN)@$(HOSTING) sync
|
ssh $(HOSTADMIN)@$(HOSTING) sudo sync
|
||||||
ssh $(HOSTADMIN)@$(HOSTING) service kestrel start
|
ssh $(HOSTADMIN)@$(HOSTING) sudo service kestrel start
|
||||||
else
|
else
|
||||||
@echo EPRODANDGITSTATUS! Refus de pousser en production: des changements doivent être validés auprès du contrôle de versions.
|
@echo EPRODANDGITSTATUS! Refus de pousser en production: des changements doivent être validés auprès du contrôle de versions.
|
||||||
git status
|
git status
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue