Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 1008 Bytes

README.md

File metadata and controls

32 lines (18 loc) · 1008 Bytes

Deploygif Infrastructure

About

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.

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).

Testing

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

License

MIT