deployinator 0.1.4 → 0.1.5
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/lib/deployinator/built-in.rb +2 -1
- data/lib/deployinator/deploy.rb +10 -0
- metadata +2 -2
@@ -97,6 +97,7 @@ end
|
|
97
97
|
def deploy_run_bluepill_jobs(host)
|
98
98
|
execute(
|
99
99
|
"docker", "run", "--tty", "--detach",
|
100
|
+
"--user", fetch(:webserver_username),
|
100
101
|
"--name", fetch(:ruby_jobs_container_name),
|
101
102
|
"-e", "GEM_HOME=#{shared_path.join('bundle')}",
|
102
103
|
"-e", "GEM_PATH=#{shared_path.join('bundle')}",
|
@@ -106,7 +107,7 @@ def deploy_run_bluepill_jobs(host)
|
|
106
107
|
"--volume", "#{fetch(:deploy_to)}:#{fetch(:deploy_to)}:rw",
|
107
108
|
"--entrypoint", shared_path.join('bundle', 'bin', 'rabid_jobs_tasker'),
|
108
109
|
fetch(:ruby_image_name), "--rails_root", current_path,
|
109
|
-
"--environment", fetch(:rails_env), "--pid", "#{fetch(:webserver_socket_path)}/jobs.pid"
|
110
|
+
"--environment", fetch(:rails_env), "--pid", "#{fetch(:webserver_socket_path)}/jobs.pid", "--maxworkers", "3"
|
110
111
|
)
|
111
112
|
end
|
112
113
|
def deploy_run_cadvisor(host)
|
data/lib/deployinator/deploy.rb
CHANGED
@@ -175,6 +175,16 @@ namespace :deploy do
|
|
175
175
|
end
|
176
176
|
end
|
177
177
|
|
178
|
+
desc "Write Version file on server"
|
179
|
+
after 'deploy:finished', :write_version_file do
|
180
|
+
on roles(:app) do |host|
|
181
|
+
execute "echo", "\"<version>", "<release>#{fetch(:current_revision)}</release>",
|
182
|
+
"<deployed_at>#{Time.now.strftime('%m/%d/%Y at %H:%M %Z')}</deployed_at>",
|
183
|
+
"<branch>#{fetch(:branch)}</branch>",
|
184
|
+
"</version>\"", ">", current_path.join('public', 'version.xml')
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
178
188
|
after 'deploy:finished', :success_message do
|
179
189
|
run_locally do
|
180
190
|
info "That was a successful deploy!"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deployinator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-01-
|
12
|
+
date: 2015-01-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|