2 ms·
I did something very similar last fall: a blog structure that you deploy as Markdown, the server compiles and serves HTML. https://github.com/aybabtme/brog htt
by AYBABTME 13y ago
I did something very similar last fall: a blog structure that you deploy as Markdown, the server compiles and serves HTML.
https://github.com/aybabtme/brog https://github.com/aybabtme/brog
I wanted to play with fsnotify, so not only will it compile your Markdown, it will also watch the blog path and reload/recompile the Markdown + Templates when they change.
Thus you can start the server once, make it watch a folder and then simply rsync/push your changes in that folder to see the change live. The deployment of a blog looks like this:
https://github.com/aybabtme/antoine.im https://github.com/aybabtme/antoine.im
It's surprisingly fast; I've been working on a load generation tool at work and I use my blog [1] to try it out. It can handle quite a bit of traffic on a little 5$ droplet[2]!
[1]: http://www.antoine.im/ http://www.antoine.im/
[2]: I do the load testing on the IP of the machine, since [1] is behind Cloudflare.
- marcuskaz 13y agoNice! I'll have to check it out and see the fsnotify stuff. That's one thing, it currently does not recompile the templates if there is a change.