You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by jo...@apache.org on 2019/12/08 03:41:54 UTC

[incubator-heron] branch joshfischer/site-tweaks updated: clear all contents of content directory before republish

This is an automated email from the ASF dual-hosted git repository.

joshfischer pushed a commit to branch joshfischer/site-tweaks
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git


The following commit(s) were added to refs/heads/joshfischer/site-tweaks by this push:
     new 94106d5  clear all contents of content directory before republish
94106d5 is described below

commit 94106d51f015354c705e457f6f2f01b6499c869f
Author: Josh Fischer <jo...@joshfischer.io>
AuthorDate: Sat Dec 7 21:41:29 2019 -0600

    clear all contents of content directory before republish
---
 .asf.yaml                                | 6 +++---
 website2/website/scripts/publish_site.sh | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index fef1a18..6bd6473 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -19,6 +19,6 @@ staging:
   profile: ~
   whoami: asf-site
 
-publish:
-  whoami: asf-site
-  hostname: http://heronstreaming.io
+#publish:
+#  whoami: asf-site
+#  hostname: http://heronstreaming.io
diff --git a/website2/website/scripts/publish_site.sh b/website2/website/scripts/publish_site.sh
index b313aba..0a0106c 100755
--- a/website2/website/scripts/publish_site.sh
+++ b/website2/website/scripts/publish_site.sh
@@ -39,6 +39,7 @@ HERON_SITE_TMP=/tmp/heron-site
   git checkout asf-site
 
   # copy the generated dir
+  rm -rf $HERON_SITE_TMP/content/*
   cp -r $WORK_DIR/* $HERON_SITE_TMP/content
   cp -a ${ROOT_DIR}/.htaccess ${ROOT_DIR}/content
   # push all of the results to asf-site branch