makefile/−ssh

This commit is contained in:
Marc Beninca 2021-11-08 22:01:58 +01:00
parent 3f26306202
commit da862d879b

View file

@ -8,11 +8,6 @@ OUTPUTDIR=$(BASEDIR)/output
CONFFILE=$(BASEDIR)/pelicanconf.py CONFFILE=$(BASEDIR)/pelicanconf.py
PUBLISHCONF=$(BASEDIR)/publishconf.py PUBLISHCONF=$(BASEDIR)/publishconf.py
SSH_HOST=rwx.work
SSH_PORT=22
SSH_USER=user
SSH_TARGET_DIR=/ssd/projects/public/rwx.work/blog
DEBUG ?= 0 DEBUG ?= 0
ifeq ($(DEBUG), 1) ifeq ($(DEBUG), 1)
@ -76,11 +71,5 @@ endif
publish: publish:
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS) $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
ssh_upload: publish
scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
rsync_upload: publish .PHONY: html help clean regenerate serve serve-global devserver stopserver publish
rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --cvs-exclude --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
.PHONY: html help clean regenerate serve serve-global devserver stopserver publish ssh_upload rsync_upload