Deploy to local WEB server.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 11:03:03 +0200
changeset 1902 1dd434abf745
parent 1901 12a7d89c74a9
child 1903 901e7394849f
Deploy to local WEB server.
Makefile
--- 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.