Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
fabric utilities to deploy django projects on ubuntu
Python
branch: master

This branch is 1 commit ahead, 4 commits behind wellnesstelecom:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example/localhost_files
wtdeploy
.gitignore
README.markdown
machine_gun
setup.py

README.markdown

Intro

wtdeploy is a toolkit built on top of fabric, that allows you to deploy django applications on ubuntu distribution using apache and mysql

Quick start

installing

$ pip install -e git+git://github.com/wellnesstelecom/wtdeploy.git#egg=wtdeploy

project configuration

configure your django project:

  • local_settings must be imported at the end of settings file:

    from local_settings import *
    
  • put requirements.txt at the same level as settings.py.

** prepare deployment files **

$ cd myproject
$ machine_gun init

deploy/localhost folder and a very basic fabfile.py will be created. Edit fabfile.py for more info.

  • Edit deploy/localhost/django/local_settings.py if you need, it will be used in the host with this configuration (configuration for each host is selected in fabfile.py)

  • check if you need to change deploy/localhost/django/app.wsgi, virtualhost, cron files

and finally execute:

$ fab myhost install
$ fab myhost deploy

usage

First upload changes to your repository

$ svn commit

deploy the changes

$ fab myhost deploy
Something went wrong with that request. Please try again.