Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Latest commit

 

History

History
46 lines (33 loc) · 1.23 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.23 KB

django-stack

Configurable baseline ansible role for slingin' django code to your server. Many of the other roles on the internetz were attempting to be all encompassing roles where-as I'd like to take advantage of many third-party and internal roles for handling things like postgres, nginx, etc.

This role is not tied to a specific django repo and its designed to be flexible, a lot of the flexibility plays out via ansible variables.

In order to fully take advantage of the role as currently laid out you'll need to use nginx and include snippets/proxy.conf at any point in your configs where you'd normally call the proxy_pass command, example:

location / {
   include snippets/proxy.conf;
}

Requirements

These are the following system requirements:

  • docker

Deployment options

There are two primary otions for deploying your django code-base to the server in question:

  • Utilizing git so that the server will pull the repo's code-base. This requires defining parameters in django_stack_git_repo.
  • rsync a local copy of the code-base up to the server via django_stack_deploy_src.

License

MIT

Author Information

Michael Sheinberg mike@freedom.press