capistrano-node-deploy 1.2.12 → 1.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/capistrano-node-deploy.gemspec +2 -2
- data/lib/capistrano/node-deploy.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbb8682438a0a2a33a6dd878f527118d475e37bb
|
4
|
+
data.tar.gz: a8bb7e6cfa23e8ddcd5d2ea19fb0b7110c5d903f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5266f0c4f5543147f0f01b17d72ab5381dfb99b930915b43ec75966179fd9540590ecaaafae447e42788f0bdd76508a0165c68cdd766b66b6ca88d0dc193b33
|
7
|
+
data.tar.gz: 8a662a6cbde97c48f2c8cd0ebc1618ee1921ac195d1de72b51c37aa501055cd2e90996461c2b939bba168436a41b049bc45cf540b887d00a379075ad88f6424e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.13
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "capistrano-node-deploy"
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.13"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["James Smith"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2014-01-17"
|
13
13
|
s.description = "Capistrano recipes for deploying node apps"
|
14
14
|
s.email = "james@loopj.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -38,6 +38,7 @@ Capistrano::Configuration.instance(:must_exist).load do |configuration|
|
|
38
38
|
set :app_environment, "" unless defined? app_environment
|
39
39
|
|
40
40
|
set :node_binary, "/usr/bin/node" unless defined? node_binary
|
41
|
+
set :npm_binary, "/usr/bin/npm" unless defined? npm_binary
|
41
42
|
set :node_env, "production" unless defined? node_env
|
42
43
|
set :node_user, "deploy" unless defined? node_user
|
43
44
|
|
@@ -68,8 +69,11 @@ EOD
|
|
68
69
|
namespace :node do
|
69
70
|
desc "Check required packages and install if packages are not installed"
|
70
71
|
task :install_packages do
|
71
|
-
run "
|
72
|
-
run "
|
72
|
+
run "mkdir -p #{shared_path}/node_modules"
|
73
|
+
run "cp #{release_path}/package.json #{shared_path}"
|
74
|
+
run "cp #{release_path}/npm-shrinkwrap.json #{shared_path}" if remote_file_exists?("#{release_path}/npm-shrinkwrap.json")
|
75
|
+
run "cd #{shared_path} && #{npm_binary} install --loglevel warn"
|
76
|
+
run "ln -s #{shared_path}/node_modules #{release_path}/node_modules"
|
73
77
|
end
|
74
78
|
|
75
79
|
task :check_upstart_config do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-node-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railsless-deploy
|