Skip to content

yuuki/capze

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

capze

capze is a tool to make Capistrano-like directory structure.

$ tree -L 2 /var/www/app
/var/www/app
├── current -> /var/www/app/releases/20161002074731
└── releases
    ├── 20161002074709
    ├── 20161002074713
    ├── 20161002074716
    ├── 20161002074731
    └── 20161002081856

Usage

$ capze --keep 5 /tmp/app /var/www/app

$ capze --rollback /var/www/app

$ capze --pruned-dirs --keep 1 /var/www/app
/var/www/app/releases/20161006002523
/var/www/app/releases/20170621124528

You can use capze in combination with Droot.

$ aws s3 cp s3://drootexamples/app.tar.gz - | tar xzf - -C /tmp/app
$ capze --keep 5 /tmp/app /var/www/app

License

MIT