nswebgen 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,6 @@ class AppBuilder < Rails::AppBuilder
27
27
  template 'routes.rb'
28
28
  template 'application.rb'
29
29
  template 'environment.rb'
30
- template 'setup_load_paths.rb'
31
30
  template 'memcache.yml'
32
31
  template 'deploy.rb'
33
32
  template 'unicorn.rb'
@@ -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
- worker_processes 2
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
@@ -3,5 +3,5 @@
3
3
  #
4
4
 
5
5
  module Nswebgen
6
- VERSION = '0.5.4' # Current Nswebgen version
6
+ VERSION = '0.5.5' # Current Nswebgen version
7
7
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: nswebgen
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.4
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: 634307279
94
+ hash: -534432337
95
95
  segments:
96
96
  - 0
97
97
  version: "0"