django_fab_deployer

TODO Add description


License
MIT
Install
pip install django_fab_deployer==0.0.11

Documentation

Django FAB Deployer

Requirements Status

Installation

pip install --upgrade django_fab_deployer

Installation

# Generate example deployment configuration:
djdeploy write_example_config

Command above will generate example.json file in current directory. Example of deployment configuration:

{
  "dev": {
    "celery_enabled": true, 
    "deploy_path": "/var/www/dev_my_project", 
    "hosts": "8.8.8.8", 
    "key_filename": "~/.ssh/id_rsa.PUB", 
    "project_name": "dev_my_project", 
    "user": "dev_my_project", 
    "venv_path": "data/.venv/bin/activate", 
    "warn_on_deploy": false
  }, 
  "production": {
    "celery_enabled": true, 
    "deploy_path": "/var/www/prod_my_project", 
    "hosts": "8.8.8.8", 
    "key_filename": "~/.ssh/id_rsa.PUB", 
    "project_name": "prod_my_project", 
    "user": "prod_my_project", 
    "venv_path": "data/.venv/bin/activate", 
    "warn_on_deploy": true
  }
}

Save this file as deploy.json.

Usage

In project's root run:

djdeploy <TARGET> deploy

where <TARGET> is production, dev, foo or bar.

Optionally you can deploy&update dependencies:

djdeploy <TARGET> deploy:upgrade=True