Git Product home page Git Product logo

capistrano-node's Introduction

capistrano-node

Capistrano tasks for deploying Node projects.

What does it do?

  • Skips migrations
  • Installs NPM packages on deploy
  • Manages multiple node versions using package.json

Usage

In your deploy.rb

require 'capistrano/node'

set :multi_node, true # To use multiple node versions
set :node_dir, '/opt/nodejs/versions' # Node dirs
set :version_prefix, 'v'

Node Version Management

capistrano-node can manage multiple Node versions when multi_node variable is set to true. In this case, it assumes that node_dir contains compiled Node binaries for multiple versions each. For example, the directory could contain files in following structure (assuming version prefix 'v'):

$NODE_DIR
  - v0.6.10
    - bin
      - node
      - node-waf
      - npm
      - npm_g
      - npm-g
  - v0.6.9
    - bin
      - node
      etc..

If multiple Node versions are used, capistrano-node reads used Node version from package.json:

"engines": {
  "node": ">= 0.6.14"
}

We've also published our Chef recipes for installing and distributing multiple Node versions.

Copyright

© Flowdock. See LICENSE.txt for further details.

capistrano-node's People

Contributors

lautis avatar mruokojo avatar osqu 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.