summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Grunt <pgrunt@redhat.com>2016-04-11 09:27:29 +0200
committerPavel Grunt <pgrunt@redhat.com>2016-08-30 17:19:13 +0200
commit9fe8a265cb36fb67e72a20650d3723ce16900591 (patch)
treec9c99750a0c4e397c23bd6bbcb63ee108f297467
parent2c30b4041ba60de11d4b6681fbc4325326a1a38c (diff)
Makefile: Add rhc upload rule
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 837c2f7..05b2531 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,10 @@ DROPBOX_DIR=~/Dropbox/Public/
GITHUB_PAGES_BRANCH=gh-pages
+RHC_APPNAME=web
+RHC_NAMESPACE=spicespace
+RHC_DIR=app-root/data/static/
+
DEBUG ?= 0
ifeq ($(DEBUG), 1)
PELICANOPTS += -D
@@ -126,4 +130,7 @@ github: publish
zip: html
cd output && zip -r web.zip * && mv web.zip ../
+rhc_upload: zip
+ rhc scp ${RHC_APPNAME} --namespace ${RHC_NAMESPACE} upload web.zip ${RHC_DIR}
+
.PHONY: html help clean regenerate serve serve-global devserver publish ssh_upload rsync_upload dropbox_upload ftp_upload s3_upload cf_upload github