Cabric

Cabric,a deploy tool for CentOS,based on Fabric.

Build status MIT License Support Python implementations.

Quick Start

  1. Installation

    pip install cabric
    
  2. Initial

    cd /tmp
    cab touch nextoa/cabric-kickstart cabric-demo
    
  3. Edit hosts

    cd /tmp/cabric-demo
    sed -i -e "s/example.com/<YOUR SERVER IP>/g" config/fabric/beta.conf
    
  4. Run

    cab install --env=beta    # install depends packages
    cab config --env=beta --restart=nginx   # config server and restart nginx services
    
  5. Work With Fabric Task

    fab ez:beta hello_world
    

Features

cab check                    # [plan-feature] check current environment
cab touch                    # touch a project from template repository.
cab install                  # install depends on target server.
cab config                   # config target server.
cab deploy                   # deploy project.
cab compile                  # compile python project.
cab clean                    # clean python compiled files.
cab mini                     # minify python project.
cab render                   # render project which create by `cab touch`
cab update                   # [plan-feature] upgrade target server.
cab package                  # a short way for python package.