changeset 69:f82b136921b7

Deploy to local WEB server.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Mon, 22 Feb 2016 11:03:03 +0200
parents 46721724e2a3
children 1c08c262dfba
files Makefile
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Feb 22 10:55:12 2016 +0200
+++ b/Makefile	Mon Feb 22 11:03:03 2016 +0200
@@ -60,6 +60,7 @@
 WWW_SRV_USER := user
 HG_SRV_NAME := hg.defun.work
 HG_SRV_USER := user
+LOCAL_DIR := /srv/www/tips
 
 ifneq '' '$(filter deploy%,$(MAKECMDGOALS))'
   $(shell rm -f HEADER.rst)
@@ -86,6 +87,10 @@
 deploy2sf-hg:
 	hg push ssh://gavenkoa@hg.code.sf.net/u/gavenkoa/tips || [ $$? = 1 ]
 
+.PHONY: deploy2local
+deploy2local: html
+	rsync --delete -avP tips-html/ $(LOCAL_DIR)
+
 ################################################################
 # Build targets.