From 4fabdc1ee82d1c90722252cbbffc90e597a9834c Mon Sep 17 00:00:00 2001 From: Eric Phillips Date: Thu, 1 Feb 2018 20:25:50 -0700 Subject: [PATCH] track blogging script --- blog.bash | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 blog.bash diff --git a/blog.bash b/blog.bash new file mode 100755 index 0000000..fc08d58 --- /dev/null +++ b/blog.bash @@ -0,0 +1,18 @@ +#!/bin/bash +#script to make blogging easier + +#activate nikola +source ~/nikola/bin/activate + +#create a new post +cd ~/myblog +nikola new_post -e + +#build the new site +nikola build + +#deploy +rsync -av --delete output/ ewpt3ch.com:/srv/http/ewpt3ch.com/blog/ + +#deactivate nikola +deactivate