Add deploy command
This commit is contained in:
parent
73db3f277d
commit
5e726b4c99
1 changed files with 9 additions and 1 deletions
10
Makefile
10
Makefile
|
@ -5,6 +5,10 @@ PELICAN=$(ENV)/pelican
|
|||
BASEDIR=$(PWD)
|
||||
OUTPUTDIR=$(BASEDIR)/output
|
||||
|
||||
SSH_USER=web
|
||||
SSH_HOST=theorangeone.net
|
||||
SSH_TARGET_DIR=/home/web/v4-theorangeone.net/site # Dev path only!
|
||||
|
||||
FLAKE8_IGNORE=--ignore=E128,E501,E401,E402
|
||||
|
||||
build: install
|
||||
|
@ -53,4 +57,8 @@ lint:
|
|||
$(ENV)/flake8 $(BASEDIR)/pelicanconf.py $(FLAKE8_IGNORE)
|
||||
|
||||
|
||||
.PHONY: build clean test lint install
|
||||
upload: build
|
||||
rsync -e "/usr/bin/ssh" -rvz --delete $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
|
||||
|
||||
|
||||
.PHONY: build clean test lint install upload
|
||||
|
|
Reference in a new issue