torchbox / wagtail-template

A Django template for starting new Wagtail projects with Vagrant. NO LONGER MAINTANED
19 stars 8 forks source link

[RFC] Convert docker config into Heroku-like config and add fab test command #26

Closed kaedroho closed 9 years ago

kaedroho commented 9 years ago

This PR allows wagtail-template based sites to run in a Heroku-like environment. It replaces the Dockerfile with something that can be run on Dokku/Flynn/Deis/Heroku.

It also adds a test fab command. This allows a developer to quickly setup a "testing environment" on a Dokku server for the particular branch they are working on.

The testing environments run as if they are in produciton (debug off, offline compression, etc). Also, the media issue we had with Heroku has been solved by using Dokku volumes.

The advantages of these testing environments over the staging environments we currently use are:

This PR contains a mostly complete implementation of testing environments, the only major thing that isn't implemented yet is prepopulating their database and media volume with data from a live site.

This should work on any dokku-alt server with no extra modifications required.