nswebgen 0.5.4 → 0.5.5
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.
|
@@ -7,10 +7,17 @@
|
|
|
7
7
|
#
|
|
8
8
|
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
|
|
9
9
|
# documentation.
|
|
10
|
+
rack_env = ENV['RACK_ENV'] || 'development'
|
|
10
11
|
|
|
11
12
|
# Use at least one worker per core if you're on a dedicated server,
|
|
12
13
|
# more will usually help for _short_ waits on databases/caches.
|
|
13
|
-
|
|
14
|
+
if rack_env == 'production'
|
|
15
|
+
worker_processes 2
|
|
16
|
+
elsif rack_env == 'customer_qa'
|
|
17
|
+
worker_processes 1
|
|
18
|
+
else
|
|
19
|
+
worker_processes 1
|
|
20
|
+
end
|
|
14
21
|
|
|
15
22
|
# Since Unicorn is never exposed to outside clients, it does not need to
|
|
16
23
|
# run on the standard HTTP port (80), there is no reason to start Unicorn
|
data/lib/nswebgen/version.rb
CHANGED
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: nswebgen
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.5.
|
|
5
|
+
version: 0.5.5
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- John C. Burr
|
|
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
91
91
|
requirements:
|
|
92
92
|
- - ">="
|
|
93
93
|
- !ruby/object:Gem::Version
|
|
94
|
-
hash:
|
|
94
|
+
hash: -534432337
|
|
95
95
|
segments:
|
|
96
96
|
- 0
|
|
97
97
|
version: "0"
|