makefile: ssh/rsync added
This commit is contained in:
parent
2226d8c89c
commit
5cd712fa45
2 changed files with 13 additions and 2 deletions
13
Makefile
13
Makefile
|
|
@ -8,6 +8,11 @@ OUTPUTDIR=$(CURDIR)/public
|
||||||
CONFFILE=$(BASEDIR)/pelicanconf.py
|
CONFFILE=$(BASEDIR)/pelicanconf.py
|
||||||
PUBLISHCONF=$(BASEDIR)/publishconf.py
|
PUBLISHCONF=$(BASEDIR)/publishconf.py
|
||||||
|
|
||||||
|
SSH_HOST=https://nosignal.hopto.org
|
||||||
|
SSH_PORT=22
|
||||||
|
SSH_USER=my_webapp
|
||||||
|
SSH_TARGET_DIR=/var/www/losttrain/
|
||||||
|
|
||||||
|
|
||||||
DEBUG ?= 0
|
DEBUG ?= 0
|
||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
|
|
@ -71,5 +76,11 @@ 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)
|
||||||
|
|
||||||
.PHONY: html help clean regenerate serve serve-global devserver publish
|
rsync_upload: 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 publish ssh_upload rsync_upload
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# Example [Pelican] website using GitLab server, 'nosignal.hopto.org/gitlab'
|
# Example [Pelican] website using GitLab server, 'nosignal.hopto.org/gitlab'
|
||||||
|
|
||||||
- located <https://nosignal.hopto.org/gitlab/doohoyi/lost-train>
|
- located <https://nosignal.hopto.org/gitlab/doohoyi/lost-train>
|
||||||
- Check the resulting website here: <https://nosignal.hopto.org/site/ci/losttr/>
|
- Check the resulting website here: <https://nosignal.hopto.org/site/losttrain/>
|
||||||
- utilizing 'SparkleShare' for real-time sync.
|
- utilizing 'SparkleShare' for real-time sync.
|
||||||
- CI powered by server-side gitlab-runner !
|
- CI powered by server-side gitlab-runner !
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue