Giter VIP home page Giter VIP logo

deep_thought-capistrano_2's Introduction

Deep Thought Capistrano 2 Deployer

Deploy via Capistrano (2.x.x) with Deep Thought.

Install it

gem install deep_thought-capistrano_2

Require it

In your Deep Thought's config.ru:

require "deep_thought"
require "deep_thought-capistrano_2"

DeepThought.setup(ENV)

run DeepThought.app

.deepthought.yml it

For your Capistrano (2.x.x) projects, set the deploy_type to "capistrano2":

deploy_type: capistrano2

Use it

Deploy any branch to any environment.

The deployer always calls the deploy namespace - all actions passed to a deploy will fall under that namespace. For example, setting an action to "config" will call "deploy:config".

branch, box, and variables are passed as Capistrano variables via the -s flag.

Check out the base example for an easy place to start writing a Deep Thought-friendly Capistrano recipe.

Hack it

Find an issue? Want to make the deployer more robust?

Set it up:

script/bootstrap

Create an .env:

echo RACK_ENV=development > .env

Set up the databases (PostgreSQL):

createuser deep_thought
createdb -O deep_thought -E utf8 deep_thought_development
createdb -O deep_thought -E utf8 deep_thought_test
rake db:migrate

Test it:

script/test

Contribute it

  1. Fork
  2. Create
  3. Code
  4. Test
  5. Push
  6. Submit
  7. Yay!

deep_thought-capistrano_2's People

Contributors

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