Skip to content
Snippets Groups Projects
Commit 46542267 authored by James Vasile's avatar James Vasile Committed by Tris Haines
Browse files

build pub, rely on build for push

parent 9e4732cd
No related branches found
No related tags found
1 merge request!1Added code for byline to article template
......@@ -4,6 +4,11 @@ set -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd ${SCRIPT_DIR}/../site
pelican content
echo Site generated and copied to site/output
if [ "$1" = pub ]; then
pelican -s publishconf.py content
echo Pub site generated and copied to site/output
else
pelican content
echo Dev site generated and copied to site/output
fi
......@@ -3,8 +3,7 @@
set -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd ${SCRIPT_DIR}/../site
pelican -s publishconf.py content
cd output
rsync -rvzP * root@opentechstrategies.com:/var/www/blog
${SCRIPT_DIR}/build pub
cd ${SCRIPT_DIR}/../site/output
rsync -rvzP --delete * root@opentechstrategies.com:/var/www/blog
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment