odania-static-pages 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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c6053d1e8330db9aa48f8f9c23481a65c658e9f
|
|
4
|
+
data.tar.gz: 027c4e5a1ca7d2415a63d6a6e7c844f1b8b7df3f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1733cddc8f953fe78de551757a1e07398c6d63054557fd44c337b60a02d8ede11d81ef19084e2849bf34227890eaa54720c90317b2bbc112c0668b6a866ef5ca
|
|
7
|
+
data.tar.gz: b15c3c4e0f2db13912e86b28c36776955248c1139257e21b11ea279af163a97068e0591f7c814ef955722c848d18a57c37deb396d33f385dd4ce3ba732f6ae7c
|
|
@@ -30,7 +30,7 @@ module OdaniaStaticPages
|
|
|
30
30
|
puts " -> Deploying to color: #{new_color} [Path: #{@site_path}]"
|
|
31
31
|
|
|
32
32
|
generate_compose_config
|
|
33
|
-
|
|
33
|
+
generate_nginx_config(do_rebuild)
|
|
34
34
|
prepare_varnish
|
|
35
35
|
|
|
36
36
|
@config.current_environment.do_notify new_color, color
|
|
@@ -89,19 +89,6 @@ module OdaniaStaticPages
|
|
|
89
89
|
File.write File.join(docker_folder, 'varnish-generator', 'varnish-secret'), @deploy_config.varnish_secret
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
def grouped_domains
|
|
93
|
-
result = Hash.new { |k, v| k[v] = [] }
|
|
94
|
-
|
|
95
|
-
@generator_config.jekyll_config['pages'].each do |page|
|
|
96
|
-
uri = URI.parse(page['url'])
|
|
97
|
-
host = uri.host
|
|
98
|
-
result[host] << {baseurl: page['baseurl'], relative_path: @generator_config.page_path(page)}
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
puts result.inspect
|
|
102
|
-
result
|
|
103
|
-
end
|
|
104
|
-
|
|
105
92
|
class DockerComposeGenerator
|
|
106
93
|
attr_reader :nginx_volume_html, :nginx_volume_conf_d, :nginx_volume_nginx_conf, :compose_images
|
|
107
94
|
|
|
@@ -17,7 +17,7 @@ module OdaniaStaticPages
|
|
|
17
17
|
puts 'Copying Dockerfile'
|
|
18
18
|
FileUtils.cp File.join(@config.base_dir, 'templates', 'live', 'Dockerfile'), File.join(@config.output_path, 'Dockerfile')
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
generate_nginx_config(false)
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def publish(color, do_rebuild)
|
|
@@ -28,4 +28,17 @@ module NginxHelper
|
|
|
28
28
|
puts 'Copy nginx.conf'
|
|
29
29
|
FileUtils.cp File.join(@config.base_dir, 'templates', 'nginx', 'nginx.conf'), File.join(@nginx_dir, 'nginx.conf')
|
|
30
30
|
end
|
|
31
|
+
|
|
32
|
+
def grouped_domains
|
|
33
|
+
result = Hash.new { |k, v| k[v] = [] }
|
|
34
|
+
|
|
35
|
+
@generator_config.jekyll_config['pages'].each do |page|
|
|
36
|
+
uri = URI.parse(page['url'])
|
|
37
|
+
host = uri.host
|
|
38
|
+
result[host] << {baseurl: page['baseurl'], relative_path: @generator_config.page_path(page)}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
puts result.inspect
|
|
42
|
+
result
|
|
43
|
+
end
|
|
31
44
|
end
|