big commit

This commit is contained in:
Paul Schneider 2018-05-03 15:40:58 +02:00
commit f972b677c2
239 changed files with 2674 additions and 148 deletions

View file

@ -1,28 +1,9 @@
PRJNAME=Yavsc
DESTDIR=/srv/www/yavscpre
PRODDESTDIR=/srv/www/yavsc
ASPNET_ENV=Development
CONFIGURATION=Release
ASPNET_LOG_LEVEL=info #warn
HOSTING=localhost
HOSTADMIN=root
FRAMEWORKALIAS=dnx451
BINTARGET=$(PRJNAME).dll
BINTARGETPATH=bin/$(CONFIGURATION)/$(FRAMEWORKALIAS)/$(BINTARGET)
PKGFILENAME=$(PRJNAME).$(VERSION).nupkg
DESTPATH=.
PACKAGE=$(DESTPATH)/$(PKGFILENAME)
NUGETSOURCE=$(HOME)/Nupkgs/
all: $(BINTARGETPATH)
$(BINTARGETPATH):
dnu build
deploy: clean pushInPre pushInProd
git_status := $(shell git status -s --porcelain |wc -l)
include ../common.mk
status:
ifeq ($(git_status),0)
@ -34,34 +15,7 @@ endif
default: pushInPre
restore:
touch project.json
dnu restore
project.lock.json: project.json
dnu restore
watch: project.lock.json
ASPNET_ENV=$(ASPNET_ENV) ASPNET_LOG_LEVEL=$(ASPNET_LOG_LEVEL) dnx-watch web --configuration=$(CONFIGURATION)
run: project.lock.json
ASPNET_ENV=$(ASPNET_ENV) dnx web --configuration=$(CONFIGURATION)
clean:
rm -rf bin obj
cleanoutput:
rm -rf bin/$(CONFIGURATION)
rm -rf bin/output
bin/$(CONFIGURATION): project.lock.json
dnu build --configuration=$(CONFIGURATION)
bin/output: bin/$(CONFIGURATION)
@dnu publish
bin/output/wwwroot/version: bin/output
@git log -1 --pretty=format:%h > bin/output/wwwroot/version
deploy: pushInPre pushInProd
pushInPre: cleanoutput bin/output/wwwroot/version
ssh $(HOSTADMIN)@$(HOSTING) sudo service kestrel-pre stop
@ -82,21 +36,3 @@ else
git status
endif
$(PACKAGE): $(BINTARGETPATH)
nuget pack $(PRJNAME).nuspec -Version $(VERSION) -Properties config=$(CONFIGURATION)
clean:
rm $(PACKAGE)
$(BINARY): project.lock.json
dnu build --configuration $(CONFIGURATION)
project.lock.json: project.json
dnu restore
deploy-pkg: $(PACKAGE)
cp $(PACKAGE) $(NUGETSOURCE)
.PHONY: $(PACKAGE) $(BINTARGETPATH)