From 05ac6ca2fdd6aa08917240b8b46610f6d0a237c6 Mon Sep 17 00:00:00 2001 From: Scisco Date: Thu, 17 Jul 2014 13:11:37 -0400 Subject: Updated build script with newly added jekyll build command --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/build.sh b/scripts/build.sh index 4d689db..9eb4fe2 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -25,5 +25,5 @@ cd - # Run jekyll cd $source -jekyll $source $build --no-server --no-auto +jekyll build -s $source -d $build cd - -- cgit v1.2.3 From 8b1dcb3b4353ff72ac041c7d95f4dcedf488e513 Mon Sep 17 00:00:00 2001 From: Scisco Date: Thu, 17 Jul 2014 13:12:36 -0400 Subject: Updated publish script with the updated nginx file location --- scripts/publish.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/publish.sh b/scripts/publish.sh index 82e728b..34928a4 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -13,8 +13,8 @@ source=$5 build=$6 # Set the path of the hosted site -site="/usr/share/nginx/www/$repo" +site="/usr/share/nginx/html/$repo" # Remove old site files, move new ones in place -rm -rf $site -mv $build $site +sudo rm -rf $site +sudo mv $build $site -- cgit v1.2.3 From 0f6bc4396eaefeea13af3bdce676e1133d9e064c Mon Sep 17 00:00:00 2001 From: Scisco Date: Thu, 17 Jul 2014 13:44:18 -0400 Subject: Removed sudo from publish script --- scripts/publish.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/publish.sh b/scripts/publish.sh index 34928a4..38b2143 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -16,5 +16,7 @@ build=$6 site="/usr/share/nginx/html/$repo" # Remove old site files, move new ones in place -sudo rm -rf $site -sudo mv $build $site +# On amazon EC2 use sudo if nginx html forlder has root ownership + +rm -rf $site +mv $build $site -- cgit v1.2.3 From 2ed380b7678d07c176af8e7fee2075511c67db4c Mon Sep 17 00:00:00 2001 From: Scisco Date: Thu, 17 Jul 2014 13:45:29 -0400 Subject: Removing v1 build script --- scripts/build-v1.sh | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 scripts/build-v1.sh (limited to 'scripts') diff --git a/scripts/build-v1.sh b/scripts/build-v1.sh deleted file mode 100755 index 0e85e39..0000000 --- a/scripts/build-v1.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -set -e - -# This script is meant to be run automatically -# as part of the jekyll-hook application. -# https://github.com/developmentseed/jekyll-hook - -repo=$1 -branch=$2 -owner=$3 -giturl=$4 -source=$5 -build=$6 - -# Check to see if repo exists. If not, git clone it -if [ ! -d $source ]; then - git clone $giturl $source -fi - -# Git checkout appropriate branch, pull latest code -cd $source -git checkout $branch -git pull origin $branch -cd - - -# Run jekyll -cd $source -jekyll build --source $source --destination $build -cd - -- cgit v1.2.3