shared-infrastructure 1.2.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82e8d76a3714e8539ce3d2e43caea865a2082452bec9eee7cb20f7e0b4d35cf6
4
- data.tar.gz: d8a5b7c95fa2ae8c5f0e1ac1eeb1559ccc543c42162eec477707a0d49bd281a7
3
+ metadata.gz: a1421df4f78041aebbbaf255a6e676f8303b1c5844e96da104f3308893d3eb8a
4
+ data.tar.gz: d189b196f9f75dd554d6ee87418af780b1471486da956271c9c5de3a236cd07b
5
5
  SHA512:
6
- metadata.gz: 4fc3e46e838667666757a585c977376668d92e9afc666b899bc5b78c5f824fffe17094606839195592663a8acf9da27dd92ecbe1e51726520be9bde76b39c479
7
- data.tar.gz: ba97fe89af05eaaa4e4216f8c00f66b16c2a583e3410493661d6ec947efda294feb3e0991f9607c4106818b9b165427f9da8dc47499acaf5bf688bf8aa9b5301
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SharedInfrastructure
4
- VERSION = "1.2.0"
4
+ VERSION = "2.0.0"
5
5
  end
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: 1.2.0
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-10-24 00:00:00.000000000 Z
11
+ date: 2018-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chandler