eivo-rails-api 0.1.1 → 0.1.2

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: de20dbd98a5fd51edfe4db9af61ede8d6625fc40813e92b5353b918ba3d2d9d3
4
- data.tar.gz: ce47bd0a512c4201016c4c2b7ccfc16ebe13174787c82e19f68a880caefe1bc7
3
+ metadata.gz: 45e9a81d9ab17fd835d7468253d88671965e90c81a7759afdfc225c6b62a8e08
4
+ data.tar.gz: 3d741d2d882848aac8fb8044ae13f940bf93f3ca789be6a6034dd1f799e3d633
5
5
  SHA512:
6
- metadata.gz: 9ee9466744b3d1f422c65661b78485fa758534737bc4ed7ead7b512ba1c4cce00d09318c237b140d38d849eb6b3268b73ce4092be0017f064e1d1ad71bf829cb
7
- data.tar.gz: ac642038165dba296b7941716213dbc6ef4c04b2c942fe45fad6cfebf025c7a699dc7f10a8e2049537e3c31c6bfef6cc61d2fa70dfd8e8e4575bcc9814883d22
6
+ metadata.gz: 328e6ab2f20813f38c7d6e2344b82e9f9f23d13f822dd738e98913b5072a82bf074ea825cd245ce3325d9ebc057ad70b098badd0a8ebb2cb3e23cdb99d651a91
7
+ data.tar.gz: 03fd6422987189d172e2d0beca75ce4a3a641113dc51c06979fa8b482a8d706d2d7443511e68d784890576a69235aa6e85a5e0212f9dfca7d83cba10b9ea319f
@@ -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-api'
7
- spec.version = '0.1.1'
7
+ spec.version = '0.1.2'
8
8
  spec.authors = ['Jonathan VUKOVICH-TRIBOUHARET']
9
9
  spec.email = ['jonathan@eivo.co']
10
10
 
@@ -67,6 +67,7 @@ module EIVO
67
67
  #!/usr/bin/env bash
68
68
  export RACK_ENV="production"
69
69
  export RAILS_ENV="production"
70
+ export RAILS_DAEMONIZE="true"
70
71
 
71
72
  EIVO_COMMAND
72
73
 
@@ -74,6 +75,7 @@ module EIVO
74
75
  #!/usr/bin/env bash
75
76
  export RACK_ENV="staging"
76
77
  export RAILS_ENV="staging"
78
+ export RAILS_DAEMONIZE="true"
77
79
 
78
80
  EIVO_COMMAND
79
81
 
@@ -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-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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