Giter VIP home page Giter VIP logo

capistrano-chef-deployment's Introduction

Sample deployment scaffold integrating Chef and Capistrano

This project integrates Capistrano and Chef recipes. Capistrano is used to deploy applications as a regular account (deploy by default) while chef-solo is run as root.

The recipes illustrate how to deploy multiple applications and environments to your servers.

The bootstrap and prepare scripts will ensure the deployment account is created and that rbenv is properly set up for this account. Chef is installed using rbenv but is run usin rbenv sudo.

Simply clone or fork and start working on your recipes.

Setting up a development environment with Vagrant

Important security note: before you use this scaffold on your real projects, make sure you replace deploy-key and deploy-key.pub.

vagrant up
bundle
skip_rbenv=1 bundle exec cap chef chef:bootstrap server=vagrant
skip_rbenv=1 bundle exec cap chef chef:prepare server=vagrant

Deploying the sample application provided

# will run both chef and Capistrano:
bundle exec cap app deploy:full spec=vagrant_development_rails-devise
# will run chef-solo only for the given environment
bundle exec cap app chef:run_app_recipe spec=vagrant_production_rails-devise
# will run Capistrano only for the given environment
bundle exec cap app deploy spec=vagrant_production_rails-devise
# To simply print the settings for some environment if you want to check them:
bundle exec cap app config:print spec=vagrant_production_rails-devise

capistrano-chef-deployment's People

Contributors

rosenfeld avatar

Watchers

 avatar  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.