System Log #4: Automatically deploying goodmoviefilm.com

On Sebastian LaVine's Blog
Published on

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

The user was created like so:

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

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.