Skip to content

illagrenan/django-fab-deployer

Repository files navigation

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

About

Fabric deployment endpoint to this cookicutter template: https://github.com/illagrenan/django-cookiecutter-template.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages