deploify 0.2.21 → 0.2.22
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/deploify/recipes/nginx.rb +1 -1
- data/lib/deploify/recipes/passenger.rb +18 -2
- data/lib/deploify/version.rb +1 -1
- metadata +4 -4
@@ -45,7 +45,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
45
45
|
required configuration files. These should be kept under source control.
|
46
46
|
The can be pushed to the server with the :config task.
|
47
47
|
DESC
|
48
|
-
task :config_gen_project do
|
48
|
+
task :config_gen_project, :roles => :web do
|
49
49
|
set :nginx_upstream_name, Digest::SHA1.hexdigest(application)
|
50
50
|
if nginx_upstream_servers.empty?
|
51
51
|
if app_server_type.eql?(:passenger)
|
@@ -55,14 +55,14 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
55
55
|
end
|
56
56
|
|
57
57
|
desc "Generate Passenger configs (system level) from template."
|
58
|
-
task :config_gen_system do
|
58
|
+
task :config_gen_system, :roles => :app do
|
59
59
|
SYSTEM_CONFIG_FILES[:passenger].each do |file|
|
60
60
|
_deploify.render_template(:passenger, file)
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
64
|
desc "Generate Passenger configs (project level) from template."
|
65
|
-
task :config_gen_project do
|
65
|
+
task :config_gen_project, :roles => :app do
|
66
66
|
PROJECT_CONFIG_FILES[:passenger].each do |file|
|
67
67
|
_deploify.render_template(:passenger, file)
|
68
68
|
end
|
@@ -123,11 +123,27 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
123
123
|
end
|
124
124
|
end
|
125
125
|
|
126
|
+
desc "Start Application"
|
127
|
+
task :start, :roles => :app do
|
128
|
+
if use_monit
|
129
|
+
deploify.monit.activate_project
|
130
|
+
end
|
131
|
+
run "test -d #{current_path} && #{sudo} service passenger-#{application} start; exit 0"
|
132
|
+
end
|
133
|
+
|
126
134
|
desc "Restart Application"
|
127
135
|
task :restart, :roles => :app do
|
128
136
|
run "test -d #{current_path} && #{sudo} service passenger-#{application} restart; exit 0"
|
129
137
|
end
|
130
138
|
|
139
|
+
desc "Stop Application"
|
140
|
+
task :stop, :roles => :app do
|
141
|
+
if use_monit
|
142
|
+
deploify.monit.deactivate_project
|
143
|
+
end
|
144
|
+
run "test -d #{current_path} && #{sudo} service passenger-#{application} stop; exit 0"
|
145
|
+
end
|
146
|
+
|
131
147
|
end # namespace :passenger
|
132
148
|
|
133
149
|
end # namespace :deploify
|
data/lib/deploify/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 59
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 22
|
10
|
+
version: 0.2.22
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Richard Riman
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-
|
18
|
+
date: 2013-10-16 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bundler
|