rumination 0.17 → 0.17.1
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.
- checksums.yaml +5 -5
- data/lib/rumination/tasks/deploy.rake +20 -3
- data/lib/rumination/version.rb +1 -1
- data/lib/rumination.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 4f050226355db89e430860a55f3059bea84ea77f3616ec86e68b1ad8b602d82c
|
|
4
|
+
data.tar.gz: 292fd34d4b5c5ddb0531ad4865c322564122b264d4a0bff12943f62171cbaaa9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d476b74397faea75a95458d727ee4a3b59944b61403b353b8695c32dc51d3be4419bf3712d3c9f16972c3448cfa3ed124b43e6b62cb1a291a10d73d99c6b96b4
|
|
7
|
+
data.tar.gz: 596a3fed2f4d79c7c985d91f1b746cb7959d05563142a0206797c3a39c6d5b18ee49b1a7651d4ff3eb9be0f9755faa135d4b76181a96201891bc566c99cbaeda
|
|
@@ -26,6 +26,7 @@ module DeployTasks
|
|
|
26
26
|
namespace :deploy do
|
|
27
27
|
task :default => %w[
|
|
28
28
|
setup_docker_env
|
|
29
|
+
copy_nginx_config
|
|
29
30
|
build_containers
|
|
30
31
|
shut_down_services
|
|
31
32
|
refresh_gems_in_development
|
|
@@ -37,6 +38,7 @@ module DeployTasks
|
|
|
37
38
|
|
|
38
39
|
task :bootstrap => %w[
|
|
39
40
|
setup_docker_env
|
|
41
|
+
copy_nginx_config
|
|
40
42
|
build_containers
|
|
41
43
|
shut_down_services
|
|
42
44
|
refresh_gems_in_development
|
|
@@ -57,9 +59,24 @@ module DeployTasks
|
|
|
57
59
|
end
|
|
58
60
|
|
|
59
61
|
task :publish_static do
|
|
60
|
-
|
|
61
|
-
if
|
|
62
|
-
|
|
62
|
+
vhosts = ENV["VIRTUAL_HOST"].to_s.split(",")
|
|
63
|
+
if vhosts.any? && Dir.exists?("./public")
|
|
64
|
+
main_vhost = vhosts.shift
|
|
65
|
+
sh "docker-compose run --rm #{app_container_name} rsync -av public/ /var/www/#{main_vhost}"
|
|
66
|
+
vhosts.each do |vhost|
|
|
67
|
+
sh "docker-compose run --rm #{app_container_name} ln -s /var/www/#{main_vhost} /var/www/#{vhost}"
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
task :copy_nginx_config do
|
|
73
|
+
vhosts = ENV["VIRTUAL_HOST"].to_s.split(",")
|
|
74
|
+
if vhosts.any? && File.exists?("./deploy/nginx.conf")
|
|
75
|
+
main_vhost = vhosts.shift
|
|
76
|
+
sh "docker-compose run --rm #{app_container_name} rsync -av deploy/nginx.conf /etc/nginx/vhost.d/#{main_vhost}"
|
|
77
|
+
vhosts.each do |vhost|
|
|
78
|
+
sh "docker-compose run --rm #{app_container_name} ln -s /etc/nginx/vhost.d/#{main_vhost} /etc/nginx/vhost.d/#{vhost}"
|
|
79
|
+
end
|
|
63
80
|
end
|
|
64
81
|
end
|
|
65
82
|
|
data/lib/rumination/version.rb
CHANGED
data/lib/rumination.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rumination
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 0.17.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Artem Baguinski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-02-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
194
194
|
version: '0'
|
|
195
195
|
requirements: []
|
|
196
196
|
rubyforge_project:
|
|
197
|
-
rubygems_version: 2.
|
|
197
|
+
rubygems_version: 2.7.4
|
|
198
198
|
signing_key:
|
|
199
199
|
specification_version: 4
|
|
200
200
|
summary: development utilities
|