journal
all all entries rss SoML excited dreams runes YRUU ultimate KTRU skate sleepy nihongo
Rob is 20,118 days old today.
prev day next day printable version

Entries this day: fun-sogo putting-gohugo-output-in-source-control tweaked-build-script

fun sogo

15:12 Sunday 04 December 2016 JST

Good workout today in Yoyogi with SOGO

SOGO 4 December 2016

Weird. I can see the large version of the image in Finder, but not on my site. It came from here https://drive.google.com/drive/folders/0B-y2DWbjecrPT2tWUjIxb1hiM3M

permalink

putting gohugo output in source control

09:01 Sunday 04 December 2016 JST

I think this is the short version of what I ended up doing:

On server:

cd /var/www/public
git init

git add . git commit -m "website now in version control" git config receive.denyCurrentBranch updateInstead

On local:

cd ~/gohugo/
rm -rf public/

git clone remote:/var/www/public public

Rebuild site with Hugo

cd public
git add .
git push origin master

git commit -m "Changes from local"

permalink

tweaked build script

09:38 Sunday 04 December 2016 JST

My build script was like this:

#!/bin/bash
echo "pushing"
git push

echo "pulling"
cd ~/journal-hugo
git submodule foreach git pull

echo "building"
hugo

echo "deploying"
rsync -r public/* newrobnugen:/home/nrnc/new.robnugen.com
rsync public/.* newrobnugen:/home/nrnc/new.robnugen.com

But now the last two lines can be replaced with these, I think:

cd public
git add .

git commit -m "Published on date" git push origin master

Let's see if it works.

permalink
prev day next day