Written on 2019-05-03 19:00:00
I recently participated in the 2019 Lisp Game Jam. I wanted to share some of the things I learned in the process. So I decided to start a lisp+gamedev blog.
But before I can post anything I need to actually set up a blog. And what better way to blog about lisp than with lisp itself?
Update: 7/8/2019: Added instructions for using nginx for ssl termination.
origin/master
to automatically refresh the blog)The result? I was able to get 99% of what I wanted.
Here's what I ended up using:
So why am I only 99% happy? Well, coleslaw doesn't support org-mode source files for blogging (only md and html). However, there is an api which seems capable of supporting additional formats. If I'm feeling ambitious I could try writing an org-mode plugin. For now, markdown is good enough for me.
If you're interested in my setup, here's what you can do:
Follow these instructions on the server (or a dev machine):
settings.lisp.example
to settings.lisp
and change the appropriate settings..coleslawrc
with your desired settings.# run as root
setcap CAP_NET_BIND_SERVICE=+eip (probably /home/<lispserver-user>/.roswell/impls/x86-64/linux/sbcl-bin/1.5.1/bin/sbcl)
zone=FedoraServer
# run as root
firewall-cmd --permanent --zone=FedoraServer --add-port=80/tcp
firewall-cmd --permanent --zone=FedoraServer --add-port=443/tcp
firewall-cmd --reload
server.ros
and access your domain from a web browser.*enable-ssl*
in settings.lisp
.nginx-site
in git repo) to /etc/nginx/sites-available/
/etc/nginx/sites-enabled/
/etc/nginx/nginx.conf
reads from sites-enabled.
sh
http {
....
include /etc/nginx/sites-enabled/*;
....
}
git remote add origin your-server:/path/to/your/blog.git
example.post-receive
to /path/to/your/blog.git/hooks/
and edit the file to finish the setup (instructions in the hook's comments)If you're using systemd on your server, I've also included a sample lispserver.service
file. Instructions to set it up in the file's comments.