Giter Site home page Giter Site logo

caphub's Introduction

Caphub

Generate centralized capistrano skeleton for multiple deployment.

Caphub Concept

Main idea of caphub is separate deployment and application code. So instead of capify your each project create one caphub repository and put all configurations/recipes there.

Benefits:

  • no deployment/application code mix.
  • all deployment located in place.
  • ability to deploy multiple projects
  • deployment is not limited application deployment - deploy your system configurations too! (nginx/haproxy/etc configs)
  • easy to share configurations/recipes among multiple deployment.
  • uptodate synchronizing with remote repository (with capistrano-uptodate).
  • generate layout with caphub or write it yourself from scratch with your own recipes

Description

Caphub is simple generation tool that follows caphub concept.

Caphub generates similar layout that does usual capify command. Core of caphub skeleton is capistrano-multiconfig gem that allows to recursively build multiple configurations.

Installation

$ gem install caphub

Usage

Generate caphub layout:

Capistrano 3

$ caphub my-deploy

Creating directory my-deploy
Creating capistrano skeleton in my-deploy
Initializating git repository in my-deploy

Capistrano 2

$ caphub --cap 2 my-deploy

Creating directory my-deploy
Creating capistrano skeleton in my-deploy
Initializating git repository in my-deploy

Layout example:

$ tree --dirsfirst my-deploy
my-deploy
├── config
│   ├── deploy
│   └── deploy.rb
├── recipes
├── Capfile
└── Gemfile

Review gems into Gemfile and initialize gems:

$ bundle install

Push repository remote server:

git remote add origin your/remote/git/repo/url
git push -u origin master

Configurations

Put own configuration in config/deploy.

E.g create config/deploy/blog/production.rb and it will be automatically available:

$ bundle exec cap -T
cap blog:production      # Load blog:production configuration

Use any recipe with configuration task (similar to multistage extension). E.g:

$ bundle exec cap blog:production deploy:setup

Recipes

Add gems that contains capistrano recipes to Gemfile.

Configure and require recipes into Capfile.

Put own recipes to recipes directory.

Authors

References

caphub's People

Contributors

ayanko avatar le0pard avatar maxtor avatar th1agoalmeida avatar timoschilling avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.