Sha256: adb1ff57a6c86bb3051fccb5fc73cbd834f42e984b22ff3681e023758b6fc71b
Contents?: true
Size: 1.02 KB
Versions: 12
Compression:
Stored size: 1.02 KB
Contents
after 'deploy:update_code', "npm:install" namespace :npm do desc <<-DESC Install the current npm environment. \ Note it is recommended to check in npm-shrinkwrap.json into version control\ and to put node_module into .gitignore to manage dependencies. \ See http://blog.nodejs.org/2012/02/27/managing-node-js-dependencies-with-shrinkwrap \ If no npm-shrinkwrap.json is found packages are installed from package.json with no guarantee\ about the version beeing installed If the npm cmd cannot be found then you can override the npm_cmd variable to specifiy \ which one it should use. You can override any of these defaults by setting the variables shown below. set :npm_cmd, "npm" # e.g. "/usr/local/bin/npm" DESC task :install, :roles => :app, :except => { :no_release => true } do prefix = fetch(:use_nave, false) ? "#{fetch(:nave_dir)}/nave.sh use #{fetch(:node_version, 'stable')}" : '' run("cd #{latest_release} && #{prefix} #{fetch(:npm_cmd, "npm")} install") end end
Version data entries
12 entries across 12 versions & 1 rubygems