Cabric,a deploy tool for CentOS,based on Fabric.
Installation
pip install cabric
Initial
cd /tmp cab touch nextoa/cabric-kickstart cabric-demo
Edit hosts
cd /tmp/cabric-demo sed -i -e "s/example.com/<YOUR SERVER IP>/g" config/fabric/beta.conf
Run
cab install --env=beta # install depends packages cab config --env=beta --restart=nginx # config server and restart nginx services
Work With Fabric Task
fab ez:beta hello_world
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.