eivo-rails-api 0.1.3 → 0.1.4

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: 98d59893bb4d0085ea41ba1f79ec8490449a9f833fcd12df40e7eed270fcc136
4
- data.tar.gz: 88393475fe971a0c9e2155398531d27d02b84bdb5069d559cb3e5121262390d2
3
+ metadata.gz: 6eb8fb502dfece3bbee217a7ad9b0cc1ec3addf89006a76cf5b0dc95cd4512b2
4
+ data.tar.gz: 2708e0777b8c6ff61c316c204a5008c2640d7a98f43b99427af2a22dcc728216
5
5
  SHA512:
6
- metadata.gz: 7569e7eebca7deb164ec7ef4f11760dd9fd8c9a1e7d6013ba286246c3904770d6504f275ac6bfc83ebeb6e5110b60da90357e7949692b03d68753c3afe496469
7
- data.tar.gz: 42488d944d04b958398ca5d07e21f9fb6d22905c42046670c3ae91d1a28ca7237c612fe0b10b1693be489f89d9c6cec7b775cadc59c41318ded16e147036f280
6
+ metadata.gz: 707f5dc1d2a49d3b82ad1a35788275302cad5da6295200dbe3d8e06bfae37acd5586db50fbb371b085d8d701a9831a91217e9f6cafee02dc1e1b11ab0c6cb308
7
+ data.tar.gz: 193ed57465548b16a7876ac1bdc5f34dbf816d26fb5c41c0b0ac63329cf212246a1ae9d13a0e75e0f7853cb9e7df410b6c2baaa52301e1ff3c0ff13f2fd858bb
@@ -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.3'
7
+ spec.version = '0.1.4'
8
8
  spec.authors = ['Jonathan VUKOVICH-TRIBOUHARET']
9
9
  spec.email = ['jonathan@eivo.co']
10
10
 
@@ -7,10 +7,15 @@ threads threads_count, threads_count
7
7
  environment ENV.fetch('RAILS_ENV') { 'development' }
8
8
 
9
9
  if %w[production staging].include?(ENV['RAILS_ENV'])
10
- bind 'unix://tmp/sockets/puma.sock'
11
10
  pidfile 'tmp/pids/puma.pid'
12
11
  state_path 'tmp/pids/puma.state'
13
- daemonize ENV['RAILS_DAEMONIZE'].present?
12
+ daemonize !ENV['RAILS_DAEMONIZE'].nil?
13
+
14
+ if ENV['PORT']
15
+ bind "tcp://0.0.0.0:#{ENV['PORT']}"
16
+ else
17
+ bind 'unix://tmp/sockets/puma.sock'
18
+ end
14
19
  else
15
20
  port ENV.fetch('PORT') { 3000 }
16
21
  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.3
4
+ version: 0.1.4
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-02-27 00:00:00.000000000 Z
11
+ date: 2020-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor