GoBlog is a blogging server to publish you markdown notes as neatly rendered articles.
Go
: You can install it use this automated script for Ubuntu.
-
Download deploy script. Or follow instructions on Go website.
-
Edit
deploy.sh
, updateconfigurations
part. -
Execute
./deploy.sh
.
DOC_DIR
in deploy.sh: specify a directory for all articles to be served. deploy.sh
will update conf/app.conf
and genearte the final configuration file.
APPSEC
is the string used to sign the website's cookies. By default, deploy.sh
will genereate a 64-byte random string using /dev/urandom
.
Recommended way to manage your notes locally is to create a notes
folder and put everything inside. You can put it inside a cloud storage folder to prevent data lose, e.g., ~/Dropbox
.
Your notes
folder's content should look like this:
notes
|----img
| |----img1.jpg
| |----img2.png
|----nots1.md
|----note2.md
|----...
Then you can sync notes to server for publishing with rsync:
rsync -a --progress ~/Dropbox/notes/*.md $REMOTE_HOST:$DOC_DIR/
rsync -a --progress ~/Dropbox/notes/img/* $REMOTE_HOST:$REMOTE_GOPATH/src/$GOBLOG_INS/public/img
It doesn't matter which tool to use for syncing. Just make sure notes and images go to the correct folders.
- Check out code:
cd $GOPATH/src
git clone [email protected]:lpimem/goblog.git
- Install dependencies:
cd goblog
./dependency.sh