|
journal
all | Rob is 20,357 days old today. |
|
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. permalink |