Restoring publishing target
This commit is contained in:
parent
99a4a7169c
commit
aa5549cc4d
2 changed files with 22 additions and 12 deletions
|
|
@ -48,6 +48,26 @@ deploy-pkg: publish
|
|||
|
||||
deploy: pushInPre pushInProd
|
||||
|
||||
pushInPre: cleanoutput bin/output/wwwroot/version
|
||||
sudo service kestrel-pre stop
|
||||
sudo rm -rf $(DESTDIR)/approot
|
||||
sudo cp -a bin/output/* $(DESTDIR)
|
||||
sudo cp ../../yavscd /usr/local/bin/yavscd-pre
|
||||
sudo sync
|
||||
sudo service kestrel-pre start
|
||||
|
||||
pushInProd: cleanoutput bin/output/wwwroot/version
|
||||
ifeq ($(git_status),0)
|
||||
sudo service kestrel stop
|
||||
sudo rm -rf $(PRODDESTDIR)/approot
|
||||
sudo cp -a bin/output/* $(PRODDESTDIR)
|
||||
sudo cp ../../yavscd /usr/local/bin/yavscd
|
||||
sudo sync
|
||||
sudo service kestrel start
|
||||
else
|
||||
$(error EPRODANDGITSTATUS! Refus de pousser en production: des changements doivent être validés auprès du contrôle de versions.)
|
||||
endif
|
||||
|
||||
cleanPublish: pushInPre pushInProd
|
||||
rm -rf bin/output/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue