opaque: blogging software written in OPA
opaque is some simple blogging software written in OPA that I'm
writing for projectaweek. I got an
invite, so I might as well use it!
- MathJax support (uses mathjax CDN)
- Syntax highlighting - for Haskell only at the moment (via shjs.)
- Markdown support via upskirt.
You shouldn't need anything special if you have OPA installed. Just do:
And you have
opaque.exe waiting for you.
If you want to run with
opa-cloud (see below) you'll also need
haproxy installed on the machine that will start the distribution and
do load balancing:
$ brew install haproxy # homebrew $ aptitude install haproxy # deb/ubuntu $ yum install haproxy # fedora # etc...
POSIX only at the moment. You'd just need to replace the
uname() usage inside the native binding to make it
work somewhere else, really. Alas, OPA isn't available for windows yet
After you've built it, you can either do:
$ make run
which will start the HTTP server on port 8080 by default.
RUN IN THE CLOUD! THE CLOOOOOUUUD
Naturally your blog is so popular (due to you being awesome) that any normal server by its lonesome would never be able to handle the relentless onlslaught of crazed visitors 24/7. Let the cloud save you:
$ make cloud CLOUD_OPTS=...
where 'CLOUD_OPTS' are the options you would normally give to
opa-cloud. By default it just launches two instances on
localhost. Make sure your own ssh public key is in your
$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
Admin password will be generated on the first run, and output to server debug console.
Destroying DB data
If you want to clean everything, run:
$ make clean-db
Bugs & Misc
- There's some weird behavior with mathjax ATM where you need to
double-escape backslashes in order to use inline/block style
math. So, don't use
\\[\alpha\\]and it should mostly work. Needs to be fixed.
- The Upskirt binding is bound via OCaml. It could probably be useful in its own right, but I don't know how to get it out there (put it on GODI I guess?)