deployinator 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/deployinator/deploy.rb +4 -7
- metadata +2 -2
data/lib/deployinator/deploy.rb
CHANGED
@@ -34,10 +34,8 @@ namespace :deploy do
|
|
34
34
|
task :copy_git do
|
35
35
|
unless ENV['from_local'] == "true"
|
36
36
|
on roles(:app) do
|
37
|
-
|
38
|
-
|
39
|
-
execute :cp, '-r', repo_path, '.git'
|
40
|
-
end
|
37
|
+
within release_path do
|
38
|
+
execute :cp, '-r', repo_path, '.git'
|
41
39
|
end
|
42
40
|
end
|
43
41
|
end
|
@@ -49,10 +47,10 @@ namespace :deploy do
|
|
49
47
|
if Rake::Task.task_defined?("deploy:assets:precompile")
|
50
48
|
Rake::Task["deploy:assets:precompile"].clear
|
51
49
|
namespace :assets do
|
52
|
-
task :precompile do
|
50
|
+
task :precompile => :set_deployer_user_id do
|
53
51
|
on roles(fetch(:assets_roles)) do
|
54
52
|
execute(
|
55
|
-
"docker", "run", "--rm", "--tty",
|
53
|
+
"docker", "run", "--rm", "--tty", "--user", fetch(:deployer_user_id),
|
56
54
|
"-w", fetch(:release_path, "#{fetch(:deploy_to)}/current"),
|
57
55
|
"--link", "#{fetch(:postgres_container_name)}:postgres",
|
58
56
|
"--entrypoint", "#{fetch(:deploy_to)}/shared/bundle/bin/rake",
|
@@ -245,7 +243,6 @@ namespace :deploy do
|
|
245
243
|
as :root do
|
246
244
|
paths = [
|
247
245
|
fetch(:external_socket_path),
|
248
|
-
"#{fetch(:deploy_to)}/current/public",
|
249
246
|
"#{fetch(:deploy_to)}/shared/tmp",
|
250
247
|
"#{fetch(:deploy_to)}/shared/log/production.log"
|
251
248
|
].join(' ')
|
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.0.
|
4
|
+
version: 0.0.7
|
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: 2014-12-
|
12
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|