From 5e726b4c9976747876ba897e301d156c1b80e7a1 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 12 Jun 2016 22:04:30 +0100 Subject: [PATCH] Add deploy command --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a625e83..fbb7a15 100644 --- a/Makefile +++ b/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