journal
all ![]() | Rob is 20,118 days old today. |
Nov 2016 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Jan 2017 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2015 jan feb mar apr may jun jul aug sep oct nov dec
2017 jan feb mar apr may jun jul aug sep oct nov dec |< << more >> >| |
Entries this day: fun-sogo putting-gohugo-output-in-source-control tweaked-build-script fun sogo 15:12 Sunday 04 December 2016 JSTGood workout today in Yoyogi with SOGO 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 permalinkputting gohugo output in source control 09:01 Sunday 04 December 2016 JSTI 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" permalinktweaked build script 09:38 Sunday 04 December 2016 JSTMy 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 Let's see if it works. permalinkprev day next day |