shared-infrastructure 1.2.0 → 2.0.0
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a1421df4f78041aebbbaf255a6e676f8303b1c5844e96da104f3308893d3eb8a
|
|
4
|
+
data.tar.gz: d189b196f9f75dd554d6ee87418af780b1471486da956271c9c5de3a236cd07b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2270b0180add1ef0781ccce7b6f37e9ff9e7c34673b8744c5592522d78b472e92d5796e4ca85c0412b34b5fa604e30fe151b40c521f96166295abf38f04a75c8
|
|
7
|
+
data.tar.gz: 72cc132a02f851a6f9840b91063e73aa1343df4463b49eac969022abf541c4005dc410e100e3868622f09d46df8d87c954d4d3b7926e1c059cab9fe329bd8be1
|
|
@@ -169,16 +169,6 @@ Finally, re-run this script to configure nginx for TLS.
|
|
|
169
169
|
attr_reader :rails_env
|
|
170
170
|
|
|
171
171
|
def save
|
|
172
|
-
env = {}
|
|
173
|
-
%w[SECRET_KEY_BASE
|
|
174
|
-
DATABASE_USERNAME
|
|
175
|
-
DATABASE_PASSWORD
|
|
176
|
-
EMAIL_PASSWORD].each do |var|
|
|
177
|
-
if ENV[var].nil?
|
|
178
|
-
puts "Enter #{var}: "
|
|
179
|
-
ENV[var] = $stdin.gets.strip
|
|
180
|
-
end
|
|
181
|
-
end
|
|
182
172
|
SharedInfrastructure::Output.open(File.join("/etc/logrotate.d", "#{domain.domain_name}.conf"), "w") do |io|
|
|
183
173
|
io << <<~LOGROTATE
|
|
184
174
|
compress
|
|
@@ -12,13 +12,6 @@ module Systemd
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def write_unit_file(domain_name, domain, rails_env = "production", user)
|
|
15
|
-
# if ENV["SECRET_KEY_BASE"].nil? ||
|
|
16
|
-
# ENV["DATABASE_USERNAME"].nil? ||
|
|
17
|
-
# ENV["DATABASE_PASSWORD"].nil? ||
|
|
18
|
-
# ENV["EMAIL_PASSWORD"].nil?
|
|
19
|
-
# raise "Missing environment variable"
|
|
20
|
-
# end
|
|
21
|
-
#
|
|
22
15
|
puts "writing unit file (domain_name): #{Systemd.unit_file(domain_name)} (#{domain_name})" if Runner.debug
|
|
23
16
|
|
|
24
17
|
result = File.open(Systemd.unit_file(domain_name), "w") do |f|
|
|
@@ -44,11 +37,6 @@ module Systemd
|
|
|
44
37
|
# Environment=PUMA_DEBUG=1
|
|
45
38
|
Environment=RACK_ENV=#{rails_env}
|
|
46
39
|
Environment=RAILS_ENV=#{rails_env}
|
|
47
|
-
# FIXME: The following is the wrong place
|
|
48
|
-
Environment=SECRET_KEY_BASE=#{ENV['SECRET_KEY_BASE']}
|
|
49
|
-
Environment=DATABASE_USERNAME=#{ENV['DATABASE_USERNAME']}
|
|
50
|
-
Environment=DATABASE_PASSWORD=#{ENV['DATABASE_PASSWORD']}
|
|
51
|
-
Environment=EMAIL_PASSWORD=#{ENV['EMAIL_PASSWORD']}
|
|
52
40
|
Environment=REDIS_URL=unix:///tmp/#{redis_location(domain_name)}.sock
|
|
53
41
|
|
|
54
42
|
# The command to start Puma
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shared-infrastructure
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Larry Reid
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-12-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: chandler
|