et_full_system 0.1.28 → 0.1.31

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: 4c9bff179888e6210777d068251e97d9ac47bcf3dbfc56b3af716dab6faffec5
4
- data.tar.gz: aa6f65ee212bcd9ab817f6fb6044912864a5712642133c981466044611ea27db
3
+ metadata.gz: 92b5dc47d8b504a41e4cdc2d9bd9ab344f68ed0424529995dd0e32ea0c0e0981
4
+ data.tar.gz: 8d743891336573316dfe9c9ec8616b62bb10b28d8575f5565a9c21099e387466
5
5
  SHA512:
6
- metadata.gz: b2b463f798e8769e0fc9380e17b510c31398599754a7d865c913d5f46a585ca4a43a7ca83cbe6674a911497edc5b410ed0c7050268a7269349f4e632da89b91c
7
- data.tar.gz: 347e2c6c93e27d00d1f5dae4171c7c602003c4018db9a151528a947351056639698caff541f7df326571249732d9c42105939325a3fc89a6486b991a453dbe98
6
+ metadata.gz: 79a6ffa975fcf8e1b938aa9f610b3f19ff084fa2850cd52f44342e384f4e4e713600871b154640b1327cf783c57e88095913a401c74a69a2b29c1bf19baf7e7d
7
+ data.tar.gz: 507c27463240a45b6eb1725f84dde8d4d5f699e070f9e0dd4f3eda54edc560a71c61e654360df9ce294ecd7019c2c2fb8fd83b9109805fd656acc6ee5bfb6c5f
data/Gemfile.lock CHANGED
@@ -14,7 +14,7 @@ GIT
14
14
  PATH
15
15
  remote: .
16
16
  specs:
17
- et_full_system (0.1.28)
17
+ et_full_system (0.1.31)
18
18
  aws-sdk-s3 (~> 1.9)
19
19
  azure-storage (~> 0.15.0.preview)
20
20
  dotenv (~> 2.7, >= 2.7.2)
data/foreman/.env CHANGED
@@ -1,4 +1,3 @@
1
- RAILS_ENV=production
2
1
  DB_HOST=${DB_HOST}
3
2
  DB_USERNAME=postgres
4
3
  REDIS_HOST=${REDIS_HOST}
data/foreman/et1.env CHANGED
@@ -1,4 +1,3 @@
1
- DB_NAME=et1db
2
1
  HTTP_OPEN_TIMEOUT_S=15
3
2
  HTTP_READ_TIMEOUT_S=15
4
3
  REDIS_DATABASE=5
data/foreman/et_atos.env CHANGED
@@ -1,3 +1,2 @@
1
1
  S3_UPLOAD_BUCKET='etapibucket'
2
2
  S3_DIRECT_UPLOAD_BUCKET='etapidirectbucket'
3
- DB_NAME='et_api_production'
@@ -94,7 +94,7 @@ module EtFullSystem
94
94
  puts "Starting Procfile"
95
95
  ::Bundler.with_original_env do
96
96
  concurrency = " -c #{procfile_concurrency_without(options[:without]).join(',')}"
97
- cmd = "AZURITE_STORAGE_PATH=\"#{options[:azurite_storage_path]}\" MINIO_STORAGE_PATH=\"#{options[:minio_storage_path]}\" FS_ROOT_PATH=#{PROJECT_PATH} FOREMAN_PATH=#{GEM_PATH}/foreman forego start -f \"#{GEM_PATH}/foreman/Procfile\" -e \"#{GEM_PATH}/foreman/.env\" -r#{concurrency}"
97
+ cmd = "RAILS_ENV=#{options[:rails_env]} AZURITE_STORAGE_PATH=\"#{options[:azurite_storage_path]}\" MINIO_STORAGE_PATH=\"#{options[:minio_storage_path]}\" FS_ROOT_PATH=#{PROJECT_PATH} FOREMAN_PATH=#{GEM_PATH}/foreman forego start -f \"#{GEM_PATH}/foreman/Procfile\" -e \"#{GEM_PATH}/foreman/.env\" -r#{concurrency}"
98
98
  STDERR.puts cmd
99
99
  exec(cmd)
100
100
  end
@@ -168,7 +168,7 @@ module EtFullSystem
168
168
 
169
169
  def setup_et1_service
170
170
  puts "------------------------------------------------ SETTING UP ET1 SERVICE ---------------------------------------------------"
171
- cmd = "bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et1.env\" bundle install --with=#{options[:rails_env]}\""
171
+ cmd = "bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et1.env\" bundle install --with=#{options[:rails_env]}\""
172
172
  puts cmd
173
173
  external_command cmd, 'et1 setup'
174
174
 
@@ -176,49 +176,49 @@ module EtFullSystem
176
176
  puts cmd
177
177
  external_command cmd, 'et1 setup'
178
178
 
179
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et1.env\" bundle exec rake db:create db:migrate assets:precompile\""
179
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et1.env\" bundle exec rake db:create db:migrate assets:precompile\""
180
180
  puts cmd
181
181
  external_command cmd, 'et1 setup'
182
182
  end
183
183
 
184
184
  def setup_et3_service
185
185
  puts "------------------------------------------------ SETTING UP ET3 SERVICE ---------------------------------------------------"
186
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et3.env\" bundle install --with=#{options[:rails_env]}\""
186
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et3.env\" bundle install --with=#{options[:rails_env]}\""
187
187
  puts cmd
188
188
  external_command cmd, 'et3 setup'
189
189
 
190
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et3.env\" bundle exec rake db:create db:migrate assets:precompile\""
190
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et3.env\" bundle exec rake db:create db:migrate assets:precompile\""
191
191
  puts cmd
192
192
  external_command cmd, 'et3 setup'
193
193
  end
194
194
 
195
195
  def setup_admin_service
196
196
  puts "------------------------------------------------ SETTING UP ADMIN SERVICE ---------------------------------------------------"
197
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_admin.env\" bundle install --with=#{options[:rails_env]}\""
197
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_admin.env\" bundle install --with=#{options[:rails_env]}\""
198
198
  puts cmd
199
199
  external_command cmd, 'admin setup'
200
200
 
201
201
  puts "| Admin | Running rake commands"
202
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_admin.env\" bundle exec rake db:seed assets:precompile\""
202
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_admin.env\" bundle exec rake db:seed assets:precompile\""
203
203
  puts cmd
204
204
  external_command cmd, 'admin setup'
205
205
  end
206
206
 
207
207
  def setup_api_service
208
208
  puts "------------------------------------------------ SETTING UP API SERVICE ---------------------------------------------------"
209
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_api.env\" bundle install --with=#{options[:rails_env]}\""
209
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_api.env\" bundle install --with=#{options[:rails_env]}\""
210
210
  puts cmd
211
211
  external_command cmd, 'api setup'
212
212
 
213
213
  puts "| API | Running rake commands"
214
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_api.env\" bundle exec rake db:create db:migrate db:seed\""
214
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_api.env\" bundle exec rake db:create db:migrate db:seed\""
215
215
  puts cmd
216
216
  external_command cmd, 'api setup'
217
217
  end
218
218
 
219
219
  def setup_atos_service
220
220
  puts "------------------------------------------------ SETTING UP ATOS SERVICE ---------------------------------------------------"
221
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/atos && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_atos.env\" bundle install --with=#{options[:rails_env]}\""
221
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/atos && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_atos.env\" bundle install --with=#{options[:rails_env]}\""
222
222
  puts cmd
223
223
  external_command cmd, 'atos setup'
224
224
  end
@@ -1,3 +1,3 @@
1
1
  module EtFullSystem
2
- VERSION = "0.1.28"
2
+ VERSION = "0.1.31"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: et_full_system
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 0.1.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Taylor