eivo-rails 0.1.2 → 0.1.3

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: 7d835c15bb8ab2912287e6eaef0e48620486f0a70c02b8ce21bb460b5b7f6eca
4
- data.tar.gz: cce0305d16f3028285512543de53110a5b121cdafc02e97217cc50178890d871
3
+ metadata.gz: 83c4774fa00109a8ac0e94b5e4835542c92ee190b6e32183a7984bab56564f86
4
+ data.tar.gz: ff38154e2cefe90426bd08c03073896202b0692ff0fdb4e93f4f09cb5839775e
5
5
  SHA512:
6
- metadata.gz: 64c8f44efeab5fb9b2c364d564ce07420693a9fb2924ae603afd28f27f9b123ccc15fb4a9489d6e97dadeec5e83cb68ed5fd7ddcee681d07ca707e69948886c6
7
- data.tar.gz: 78dff8e0ef82182459a289feac694873faff79880ea28f0a8ce4764b1dea4adceb152fc3433a6631051e855d21557378055380e8f60012a5a2e34811519633ab
6
+ metadata.gz: f9c3aa4170d18fa0fa306d5f50430b9e0aa52479c3de75996bd5460cd8b5b8bb6ea901040be3383d7ad6e41dccbe238b18d1bc716de11c257f245ba4dfae7ca8
7
+ data.tar.gz: 4f72c7ed8859c9ff3edc2d1db152be487faa37e15b0c153ee3a8433b2ffbac5331ff9a7a07f73a2bb700329ef9baf96b16a293bf56e0813153260bbc1f77f662
data/eivo-rails.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'eivo-rails'
7
- spec.version = '0.1.2'
7
+ spec.version = '0.1.3'
8
8
  spec.authors = ['Jonathan VUKOVICH-TRIBOUHARET']
9
9
  spec.email = ['jonathan@eivo.co']
10
10
 
@@ -70,6 +70,7 @@ module EIVO
70
70
  export RACK_ENV="production"
71
71
  export RAILS_ENV="production"
72
72
  export NODE_ENV="production"
73
+ export RAILS_DAEMONIZE="true"
73
74
 
74
75
  EIVO_COMMAND
75
76
 
@@ -78,6 +79,7 @@ module EIVO
78
79
  export RACK_ENV="staging"
79
80
  export RAILS_ENV="staging"
80
81
  export NODE_ENV="production"
82
+ export RAILS_DAEMONIZE="true"
81
83
 
82
84
  EIVO_COMMAND
83
85
 
@@ -1,5 +1,4 @@
1
1
  WEB_CONCURRENCY="0"
2
2
  RAILS_MAX_THREADS="5"
3
- DB_POOL="5" # RAILS_MAX_THREADS
4
- DB_STATEMENT_TIMEOUT="10000"
3
+ DATABASE_POOL="5" # RAILS_MAX_THREADS
5
4
  REDIS_URL="redis://localhost:6379/0"
@@ -1 +1 @@
1
- web: bundle exec puma -C config/puma.rb
1
+ web: bundle exec rails s
@@ -1,24 +1,17 @@
1
1
  default: &default
2
2
  adapter: postgresql
3
3
  encoding: unicode
4
- pool: <%%= ENV.fetch('DB_POOL') { 5 } %>
5
- host: db
6
- username: postgres
7
- variables:
8
- statement_timeout: <%%= ENV.fetch('DB_STATEMENT_TIMEOUT') { 10000 } %>
9
-
4
+ pool: <%= ENV.fetch('DATABASE_POOL') { 5 } %>
5
+ url: <%= ENV['DATABASE_URL'] %>
6
+
10
7
  development:
11
8
  <<: *default
12
- database: <%= @application.parameterize %>_development
13
9
 
14
10
  test:
15
11
  <<: *default
16
- database: <%= @application.parameterize %>_test
17
12
 
18
13
  staging:
19
14
  <<: *default
20
- database: <%= @application.parameterize %>_staging
21
15
 
22
16
  production:
23
17
  <<: *default
24
- database: <%= @application.parameterize %>
@@ -10,7 +10,7 @@ if %w[production staging].include?(ENV['RAILS_ENV'])
10
10
  bind 'unix://tmp/sockets/puma.sock'
11
11
  pidfile 'tmp/pids/puma.pid'
12
12
  state_path 'tmp/pids/puma.state'
13
- daemonize true
13
+ daemonize ENV['RAILS_DAEMONIZE'].present?
14
14
  else
15
15
  port ENV.fetch('PORT') { 3000 }
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eivo-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan VUKOVICH-TRIBOUHARET
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-10 00:00:00.000000000 Z
11
+ date: 2020-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor