This repository contains the code to manage the deploygif.com website and infrastructure.
Terraform is used to provision an instance on Digital Ocean, and Chef then installs and configures all the required services.
Deploygif is a simple lua application that runs on top of OpenResty. It retrieves a random URL of an animated gif from redis. The application code can be found on a separate GitHub repository (z0mbix/deploygif).
There are both ChefSpec and ServerSpec tests that should be run before committing. Make sure to set-up the pre-commit hook.
Unit tests:
$ cd chef
$ chef exec rspec
Integration tests:
To run the tests against an Ubuntu 16.04 vagrant VM run:
$ cd chef
$ chef exec kitchen test
MIT