capistrano-node-deploy 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/capistrano-node-deploy.gemspec +2 -2
- data/lib/capistrano/node-deploy.rb +9 -0
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "capistrano-node-deploy"
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.4"
|
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 = "2012-06-
|
12
|
+
s.date = "2012-06-17"
|
13
13
|
s.description = "Capistrano recipes for deploying node apps"
|
14
14
|
s.email = "james@loopj.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -22,6 +22,7 @@ def remote_file_exists?(full_path)
|
|
22
22
|
end
|
23
23
|
|
24
24
|
Capistrano::Configuration.instance(:must_exist).load do |configuration|
|
25
|
+
before "deploy", "deploy:create_release_dir"
|
25
26
|
before "deploy", "node:create_upstart_config"
|
26
27
|
after "deploy:symlink", "node:install_packages"
|
27
28
|
after "deploy:symlink", "node:restart"
|
@@ -71,4 +72,12 @@ Capistrano::Configuration.instance(:must_exist).load do |configuration|
|
|
71
72
|
sudo "restart #{application} || sudo start #{application}"
|
72
73
|
end
|
73
74
|
end
|
75
|
+
|
76
|
+
namespace :deploy do
|
77
|
+
task :create_release_dir, :except => {:no_release => true} do
|
78
|
+
mkdir_releases = "mkdir -p #{fetch :releases_path}"
|
79
|
+
mkdir_commands = ["log", "pids"].map {|dir| "mkdir -p #{shared_path}/#{dir}"}
|
80
|
+
run mkdir_commands.unshift(mkdir_releases).join(" && ")
|
81
|
+
end
|
82
|
+
end
|
74
83
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-node-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 4
|
10
|
+
version: 1.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- James Smith
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-06-
|
18
|
+
date: 2012-06-17 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
prerelease: false
|