site  contact  subhomenews

Bashblog local development

August 23, 2017 — BarryK

I posted this to github:

Reproducing here (and gives me a chance to practice typing in markdown):

My understanding from reading the docs, is that is intended to be run on the remote host site. Yeah, I tried that, but decided I would prefer to develop locally, including offline.

I made some simple changes. Let me know if I have misunderstood anything, or if you can see a problem with this setup.

On my PC, I placed '' and '' in a folder, and created 'config', a script 'remote-rsync' and a folder 'LOCAL'.

Just made a couple of changes to

Inserted at line 8:


Edited these two lines:

global_config="../config" [[ -f ../ ]] && markdown_bin=../ || markdown_bin=$(which 2>/dev/null || which markdown 2>/dev/null)

Just run: > ./ <params>

It seems to work OK.

Whenever I want to upload, execute: > ./remote-sync

Which is a simple one-liner:

#upload LOCAL contents to remote site
rsync --delete -rltzvuc -e "ssh -p 22" LOCAL/ username@host:path/

Make substitutions for username, host and path to suit your host.

This will be the second post!

Tags: bashblog