capistrano-node-deploy 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/capistrano-node-deploy.gemspec +1 -1
- data/lib/capistrano/node-deploy.rb +8 -8
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.4
|
@@ -23,16 +23,16 @@ Capistrano::Configuration.instance(:must_exist).load do |configuration|
|
|
23
23
|
|
24
24
|
package_json = MultiJson.load(File.open("package.json").read) rescue {}
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
set :application, package_json["name"] unless defined? application
|
27
|
+
set :app_command, package_json["main"] || "index.js" unless defined? app_command
|
28
|
+
set :app_environment, "" unless defined? app_environment
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
set :node_binary, "/usr/bin/node" unless defined? node_binary
|
31
|
+
set :node_env, "production" unless defined? node_env
|
32
|
+
set :node_user, "deploy" unless defined? node_user
|
33
33
|
|
34
|
-
|
35
|
-
|
34
|
+
set :upstart_job_name, lambda { "#{application}-#{node_env}" } unless defined? upstart_job_name
|
35
|
+
set :upstart_file_path, lambda { "/etc/init/#{upstart_job_name}.conf" } unless defined? upstart_file_path
|
36
36
|
_cset(:upstart_file_contents) {
|
37
37
|
<<EOD
|
38
38
|
#!upstart
|
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: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 4
|
10
|
+
version: 1.2.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- James Smith
|