orchestration 0.6.0 → 0.6.1

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: 219067059e72b472f7697df1659e31d7d25b3f531a487ef0270949c95e427238
4
- data.tar.gz: '079a57d5c7a6a3b59eefbd2e4b6be1b1630686d4c447b97a137c8a967f2c51a6'
3
+ metadata.gz: cb25cce428ce1b475d757e95164210197a9d737d64b72fc94f2565e2ab8b54a9
4
+ data.tar.gz: 365c9b2705a167cff5ab10a74a3b6a84ef232c9ecbb16c7371519bb76458d973
5
5
  SHA512:
6
- metadata.gz: e277c0fac7a4f73254c8d011eb3a47b40bd92385b3348a21a345ab8188f246ebacd6f031edfb53fc18ba1d815c45540fd9b4c31fbaf44aa555c52fb6852f4159
7
- data.tar.gz: 2ecf615a685df475723c4aef1bb86d60d7e400891a79af22941b2d5dd08f356db461492aa1fd092528e907ca4cc51ff8cb1a55c2d226dc51b99168a8f30fba50
6
+ metadata.gz: 9dd32821fc004fee139bd0de47cae89a5703dd3300f90601ea3c7e7e900cf1c15f1a5ac29d89bc56a21237df3a4e8d04810ec03f9df34c1e3057a3a004f378f5
7
+ data.tar.gz: 56cd182bc0edfdae3a494e6a876f99e42e2d1183e0d24bbd00e853d64b4a9942144913fd024c8fb4ad4b687c8602732916edc0b7d656a21d9e6ff36064bacca7
data/README.md CHANGED
@@ -27,7 +27,7 @@ The below screenshot demonstrates _Orchestration_ being installed in a brand new
27
27
  Add _Orchestration_ to your Gemfile:
28
28
 
29
29
  ```ruby
30
- gem 'orchestration', '~> 0.6.0'
30
+ gem 'orchestration', '~> 0.6.1'
31
31
  ```
32
32
 
33
33
  Install:
@@ -99,6 +99,7 @@ module Orchestration
99
99
  'RAILS_SERVE_STATIC_FILES' => '1',
100
100
  'WEB_PRELOAD_APP' => '1',
101
101
  'WEB_HEALTHCHECK_PATH' => '/',
102
+ 'WEB_PORT' => 8080,
102
103
  'DATABASE_URL' => database_url
103
104
  }.merge(inherited_environment.map { |key| [key, nil] }.to_h).merge(rabbitmq_urls)
104
105
  end
@@ -30,7 +30,6 @@ module Orchestration
30
30
  def application_makefile
31
31
  path = @env.root.join('Makefile')
32
32
  simple_copy('application.mk', path) unless File.exist?(path)
33
- inject_if_missing(path, 'include orchestration/Makefile')
34
33
  end
35
34
 
36
35
  def dockerfile
@@ -297,8 +297,8 @@ ifneq (,$(wildcard config/database.yml))
297
297
  @$(call system,rake db:create DATABASE_URL="${url}")
298
298
  @${rake} db:create RAILS_ENV=${env} ${log} || : ${log}
299
299
  ifneq (,$(wildcard db/structure.sql))
300
- @$(call system,rake db:structure:load DATABASE_URL="${url}")
301
- @${rake} db:structure:load DATABASE_URL='${url}' ${log} || ${exit_fail}
300
+ @$(call system,rake db:schema:load DATABASE_URL="${url}")
301
+ @${rake} db:schema:load DATABASE_URL='${url}' ${log} || ${exit_fail}
302
302
  else ifneq (,$(wildcard db/schema.rb))
303
303
  @$(call system,rake db:schema:load DATABASE_URL="${url}")
304
304
  @${rake} db:schema:load DATABASE_URL='${url}' ${log} || ${exit_fail}
@@ -19,7 +19,9 @@ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
19
19
  && npm install -g yarn<% end %>
20
20
  WORKDIR /app
21
21
  COPY .build/Gemfile .build/Gemfile.lock ./
22
- RUN bundle install --without development test --deployment
22
+ RUN bundle config set deployment 'true' \
23
+ && bundle config set without 'development test' \
24
+ && bundle install
23
25
  ADD .build/context.tar .
24
26
  <% if defined?(Webpacker) %>RUN . /root/.bashrc ; NODE_ENV=production RAILS_ENV=production yarn install && NODE_ENV=production RAILS_ENV=production SECRET_KEY_BASE=abc123 bundle exec rake assets:precompile<% elsif Rake::Task.tasks.map(&:name).include?('assets:precompile') %>RUN NODE_ENV=production RAILS_ENV=production SECRET_KEY_BASE=abc123 bundle exec rake assets:precompile<% end %>
25
27
  RUN echo "${GIT_COMMIT}" > /app/GIT_COMMIT
@@ -24,7 +24,7 @@ test:
24
24
  #
25
25
  .PHONY: post-setup
26
26
  post-setup:
27
- # Setup tasks that are not already provided by Orchestration go here.
27
+ @# Setup tasks that are not already provided by Orchestration go here.
28
28
 
29
29
  #
30
30
  # Launch all dependencies needed for a development environment and set up the
@@ -1,6 +1,6 @@
1
1
  environment ENV.fetch('RAILS_ENV') { 'development' }
2
2
 
3
- port ENV.fetch('WEB_PORT') { 8080 }
3
+ port ENV.fetch('WEB_PORT') { 3000 }
4
4
  workers ENV.fetch('WEB_CONCURRENCY') { 4 }
5
5
  threads_count = ENV.fetch('RAILS_MAX_THREADS') { 8 }
6
6
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orchestration
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.1'
5
5
  end
@@ -22,7 +22,13 @@ namespace :orchestration do
22
22
  namespace :db do
23
23
  desc I18n.t('orchestration.rake.db.url')
24
24
  task :url do
25
- puts DatabaseUrl.to_active_record_url(Rails.application.config_for(:database))
25
+ config = Rails.application.config_for(:database)
26
+
27
+ if config[:adapter] == 'sqlite3'
28
+ puts "sqlite3:#{config[:database]}"
29
+ else
30
+ puts DatabaseUrl.to_active_record_url(config)
31
+ end
26
32
  end
27
33
 
28
34
  desc I18n.t('orchestration.rake.db.console')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orchestration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Farrell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-06 00:00:00.000000000 Z
11
+ date: 2021-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: database_url