thredded_create_app 0.1.7 → 0.1.8

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
  SHA1:
3
- metadata.gz: 43c529c88409832930c874c409f84ac7e5f6cb44
4
- data.tar.gz: 4aea74c5015e106db8602531cd736ace9ea6aa3f
3
+ metadata.gz: 228ae46125c037e8258f160998c06a4929131bab
4
+ data.tar.gz: e38c9d23a36c26075f66c793e0068a66e9cf71e2
5
5
  SHA512:
6
- metadata.gz: 5c893690c830442227d0e27b9f52877ef4e454ce72356beafe6395dc7ecce129b61d80cb230f4e390798099710fbbe028b05a426c70dba58891dda6223177eff
7
- data.tar.gz: 40c96f6b87029f670ce5c37c26534ab237ab9e7900ac137d529b22dd24bdaa09c2e64b8c62447d978dfb36f0380c377e81ae9663ed45e95ae63377c2340ca06c
6
+ metadata.gz: 6d92a8f626ed712744b22d6c315d07093796cd3aa03e50cd174a505971e2ce5acfb182ba783c71ca5427edb114288b3a2a7ecb17f93de12578dc053a6ba9bc55
7
+ data.tar.gz: f87ba6d6b544ab18af14a5602489183d96e0f851735fae9240514eff861aa3fe6b0f07f51e623dcb671a5b687324d78c4b312d0bd725bee9d5e1a3fe54e65019
@@ -75,7 +75,7 @@ module ThreddedCreateApp
75
75
  end
76
76
 
77
77
  # @final
78
- def bundle
78
+ def bundle # rubocop:disable Metrics/AbcSize
79
79
  File.open('Gemfile', 'a') do |f|
80
80
  log_info 'Writing gems to Gemfile'
81
81
  gems.each do |(name, version, groups, path)|
@@ -5,7 +5,18 @@ threads(threads_count, threads_count)
5
5
 
6
6
  preload_app!
7
7
 
8
- port ENV.fetch('PORT', 3000)
8
+ if ENV['ANSIBLE_PROVISIONED']
9
+ shared_path = "#{ENV['APP_DIR']}/shared"
10
+ bind "unix://#{shared_path}/tmp/sockets/puma.sock"
11
+ state_path "#{shared_path}/tmp/pids/puma.state"
12
+ pidfile "#{shared_path}/tmp/pids/puma.pid"
13
+ stdout_redirect "#{shared_path}/log/puma.access.log",
14
+ "#{shared_path}/log/puma.error.log",
15
+ true
16
+ else
17
+ port ENV.fetch('PORT', 3000)
18
+ end
19
+
9
20
  environment ENV.fetch('RACK_ENV', 'development')
10
21
 
11
22
  before_fork do
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ThreddedCreateApp
3
- VERSION = '0.1.7'
3
+ VERSION = '0.1.8'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thredded_create_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Mazovetskiy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-15 00:00:00.000000000 Z
11
+ date: 2017-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: term-ansicolor