Home

Awesome

Percheron Rails stack example

This repo contains a complete Rails stack for use with Percheron.

The stack contains a Rails application that has a simple form that accepts and email address. Once the form is posted, a Sidekiq job is enqueued, processed and an email sent! This simple flow touches all containers below.

Containers included

Dependancies

Quickstart

Start boot2docker

boot2docker up && eval $(boot2docker shellinit) && export BOOT2DOCKER_IP=$(boot2docker ip)
```

Clone the percheron-rails-example repo

```shell
git clone https://github.com/ashmckenzie/percheron-rails
```

Run Percheron!

```shell
cd percheron-rails && bundle install && bundle exec percheron start rails
```

Fill out the form and wait for the email! :)

```shell
open http://${BOOT2DOCKER_IP}:1234/
```

## Bonus

The Consul UI is available at:

```shell
open http://boot2docker:8500/ui/
```