Sha256: 0fb3113871e39bbfb8f949d82be46ff11267dc6b91c406a98ccb062925673bf4

Contents?: true

Size: 1.98 KB

Versions: 11

Compression:

Stored size: 1.98 KB

Contents

capistrano-node-deploy
======================

Capistrano recipe for deploying node.js apps.

Features
--------
- Provides `cap deploy` functionality for your node app
- Installs node packages (`npm install`) during deploys, using a shared folder for speed
- Automatically creates upstart scripts for your node apps
- Provides tasks for starting (`cap node:start`) and stopping (`cap node:stop`) your node app


Usage
-----

First install the gem:

    sudo gem install capistrano-node-deploy

or add it to your `Gemfile` if you have one:

    gem "capistrano-rails-deploy", "~> 1.0.0"

Now add the following to your `Capfile`

    require "capistrano/node-deploy"


Full Capfile Example
--------------------

    require "capistrano/node-deploy"

    set :application, "my-node-app-name"
    set :repository,  "git@github.com:/loopj/my-node-app-name"
    set :user, "deploy"
    set :scm, :git
    set :deploy_to, "/var/apps/my-app-folder"

    role :app, "myserver.com"


Overriding Default Settings
---------------------------

    # Override your node binary path
    set :node_binary, "/usr/bin/coffee"

    # Override your app command
    set :app_command, "index.coffee --environment production"


Contributing to capistrano-node-deploy
--------------------------------------
 
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
* Fork the project.
* Start a feature/bugfix branch.
* Commit and push until you are happy with your contribution.
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.


Copyright
---------

Copyright (c) 2012 James Smith. See LICENSE.txt for
further details.

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
capistrano-node-deploy-1.1.0 README.md
capistrano-node-deploy-1.0.9 README.md
capistrano-node-deploy-1.0.8 README.md
capistrano-node-deploy-1.0.7 README.md
capistrano-node-deploy-1.0.6 README.md
capistrano-node-deploy-1.0.5 README.md
capistrano-node-deploy-1.0.4 README.md
capistrano-node-deploy-1.0.3 README.md
capistrano-node-deploy-1.0.2 README.md
capistrano-node-deploy-1.0.1 README.md
capistrano-node-deploy-1.0.0 README.md