System Log #4: Automatically deploying

On Sebastian LaVine's Blog
Published on

Right now, the way I update my website is by SSHing into my VPS and editing the HTML live. No more. I've created a user on my VPS to facilitate automatic deployment of the site.

The user was created like so:

root@blue:~# useradd -m -s /bin/bash
root@blue:~# groups :
root@blue:~# passwd
New password:
Retype new password:
passwd: password updated successfully
root@blue:~# chown -R /var/www/

I wrote up a build manifest and a Makefile, I generated an SSH keypair, and ta-da! Automatic deployment. Easier than I thought it'd be, honestly, thanks to rsync.

Later that day, I also tore my hair out over making the source a bit easier to edit and read with m4 macros.