unicorn 4.3.1 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/GIT-VERSION-GEN +1 -1
- data/GNUmakefile +2 -29
- data/lib/unicorn.rb +1 -1
- data/lib/unicorn/const.rb +1 -1
- data/lib/unicorn/http_server.rb +12 -1
- data/lib/unicorn/socket_helper.rb +7 -7
- data/lib/unicorn/util.rb +1 -0
- data/script/isolate_for_tests +0 -18
- data/t/listener_names.ru +4 -0
- data/t/t0022-listener_names-preload_app.sh +32 -0
- data/test/exec/test_exec.rb +72 -86
- data/test/unit/test_util.rb +7 -8
- metadata +7 -103
- data/t/rails3-app/.gitignore +0 -4
- data/t/rails3-app/Gemfile +0 -26
- data/t/rails3-app/Rakefile +0 -10
- data/t/rails3-app/app/controllers/application_controller.rb +0 -4
- data/t/rails3-app/app/helpers/application_helper.rb +0 -2
- data/t/rails3-app/app/views/layouts/application.html.erb +0 -14
- data/t/rails3-app/config.ru +0 -4
- data/t/rails3-app/config/application.rb +0 -46
- data/t/rails3-app/config/boot.rb +0 -6
- data/t/rails3-app/config/database.yml +0 -22
- data/t/rails3-app/config/environment.rb +0 -5
- data/t/rails3-app/config/environments/development.rb +0 -19
- data/t/rails3-app/config/environments/production.rb +0 -42
- data/t/rails3-app/config/environments/test.rb +0 -32
- data/t/rails3-app/config/initializers/backtrace_silencers.rb +0 -7
- data/t/rails3-app/config/initializers/inflections.rb +0 -10
- data/t/rails3-app/config/initializers/mime_types.rb +0 -5
- data/t/rails3-app/config/initializers/secret_token.rb +0 -7
- data/t/rails3-app/config/initializers/session_store.rb +0 -8
- data/t/rails3-app/config/locales/en.yml +0 -5
- data/t/rails3-app/config/routes.rb +0 -58
- data/t/rails3-app/db/seeds.rb +0 -7
- data/t/rails3-app/doc/README_FOR_APP +0 -2
- data/t/rails3-app/lib/tasks/.gitkeep +0 -0
- data/t/rails3-app/public/404.html +0 -1
- data/t/rails3-app/public/500.html +0 -1
- data/t/rails3-app/public/x.txt +0 -1
- data/t/rails3-app/script/rails +0 -9
- data/t/rails3-app/test/performance/browsing_test.rb +0 -9
- data/t/rails3-app/test/test_helper.rb +0 -13
- data/t/rails3-app/vendor/plugins/.gitkeep +0 -0
- data/t/t0300-rails3-basic.sh +0 -28
- data/t/t0301-rails3-missing-config-ru.sh +0 -33
- data/t/t0302-rails3-alt-working_directory.sh +0 -32
- data/t/t0303-rails3-alt-working_directory_config.ru.sh +0 -56
- data/t/t0304-rails3-alt-working_directory_no_embed_cli.sh +0 -52
- data/t/test-rails3.sh +0 -27
- data/test/rails/app-1.2.3/.gitignore +0 -2
- data/test/rails/app-1.2.3/Rakefile +0 -7
- data/test/rails/app-1.2.3/app/controllers/application.rb +0 -6
- data/test/rails/app-1.2.3/app/controllers/foo_controller.rb +0 -36
- data/test/rails/app-1.2.3/app/helpers/application_helper.rb +0 -4
- data/test/rails/app-1.2.3/config/boot.rb +0 -11
- data/test/rails/app-1.2.3/config/database.yml +0 -12
- data/test/rails/app-1.2.3/config/environment.rb +0 -13
- data/test/rails/app-1.2.3/config/environments/development.rb +0 -9
- data/test/rails/app-1.2.3/config/environments/production.rb +0 -5
- data/test/rails/app-1.2.3/config/routes.rb +0 -6
- data/test/rails/app-1.2.3/db/.gitignore +0 -0
- data/test/rails/app-1.2.3/public/404.html +0 -1
- data/test/rails/app-1.2.3/public/500.html +0 -1
- data/test/rails/app-2.0.2/.gitignore +0 -2
- data/test/rails/app-2.0.2/Rakefile +0 -7
- data/test/rails/app-2.0.2/app/controllers/application.rb +0 -4
- data/test/rails/app-2.0.2/app/controllers/foo_controller.rb +0 -36
- data/test/rails/app-2.0.2/app/helpers/application_helper.rb +0 -4
- data/test/rails/app-2.0.2/config/boot.rb +0 -11
- data/test/rails/app-2.0.2/config/database.yml +0 -12
- data/test/rails/app-2.0.2/config/environment.rb +0 -17
- data/test/rails/app-2.0.2/config/environments/development.rb +0 -8
- data/test/rails/app-2.0.2/config/environments/production.rb +0 -5
- data/test/rails/app-2.0.2/config/routes.rb +0 -6
- data/test/rails/app-2.0.2/db/.gitignore +0 -0
- data/test/rails/app-2.0.2/public/404.html +0 -1
- data/test/rails/app-2.0.2/public/500.html +0 -1
- data/test/rails/app-2.1.2/.gitignore +0 -2
- data/test/rails/app-2.1.2/Rakefile +0 -7
- data/test/rails/app-2.1.2/app/controllers/application.rb +0 -4
- data/test/rails/app-2.1.2/app/controllers/foo_controller.rb +0 -36
- data/test/rails/app-2.1.2/app/helpers/application_helper.rb +0 -4
- data/test/rails/app-2.1.2/config/boot.rb +0 -111
- data/test/rails/app-2.1.2/config/database.yml +0 -12
- data/test/rails/app-2.1.2/config/environment.rb +0 -17
- data/test/rails/app-2.1.2/config/environments/development.rb +0 -7
- data/test/rails/app-2.1.2/config/environments/production.rb +0 -5
- data/test/rails/app-2.1.2/config/routes.rb +0 -6
- data/test/rails/app-2.1.2/db/.gitignore +0 -0
- data/test/rails/app-2.1.2/public/404.html +0 -1
- data/test/rails/app-2.1.2/public/500.html +0 -1
- data/test/rails/app-2.2.2/.gitignore +0 -2
- data/test/rails/app-2.2.2/Rakefile +0 -7
- data/test/rails/app-2.2.2/app/controllers/application.rb +0 -4
- data/test/rails/app-2.2.2/app/controllers/foo_controller.rb +0 -36
- data/test/rails/app-2.2.2/app/helpers/application_helper.rb +0 -4
- data/test/rails/app-2.2.2/config/boot.rb +0 -111
- data/test/rails/app-2.2.2/config/database.yml +0 -12
- data/test/rails/app-2.2.2/config/environment.rb +0 -17
- data/test/rails/app-2.2.2/config/environments/development.rb +0 -7
- data/test/rails/app-2.2.2/config/environments/production.rb +0 -5
- data/test/rails/app-2.2.2/config/routes.rb +0 -6
- data/test/rails/app-2.2.2/db/.gitignore +0 -0
- data/test/rails/app-2.2.2/public/404.html +0 -1
- data/test/rails/app-2.2.2/public/500.html +0 -1
- data/test/rails/test_rails.rb +0 -287
data/test/unit/test_util.rb
CHANGED
@@ -18,8 +18,8 @@ class TestUtil < Test::Unit::TestCase
|
|
18
18
|
assert_equal ext, (fp.external_encoding rescue nil)
|
19
19
|
assert_equal int, (fp.internal_encoding rescue nil)
|
20
20
|
assert_equal(EXPECT_FLAGS, EXPECT_FLAGS & fp.fcntl(Fcntl::F_GETFL))
|
21
|
-
|
22
|
-
|
21
|
+
tmp.close!
|
22
|
+
fp.close
|
23
23
|
end
|
24
24
|
|
25
25
|
def test_reopen_logs_renamed
|
@@ -43,9 +43,9 @@ class TestUtil < Test::Unit::TestCase
|
|
43
43
|
assert_equal int, (fp.internal_encoding rescue nil)
|
44
44
|
assert_equal(EXPECT_FLAGS, EXPECT_FLAGS & fp.fcntl(Fcntl::F_GETFL))
|
45
45
|
assert fp.sync
|
46
|
-
|
47
|
-
|
48
|
-
|
46
|
+
tmp.close!
|
47
|
+
to.close!
|
48
|
+
fp.close
|
49
49
|
end
|
50
50
|
|
51
51
|
def test_reopen_logs_renamed_with_encoding
|
@@ -68,7 +68,7 @@ class TestUtil < Test::Unit::TestCase
|
|
68
68
|
assert fp.sync
|
69
69
|
}
|
70
70
|
}
|
71
|
-
|
71
|
+
tmp.close!
|
72
72
|
end if STDIN.respond_to?(:external_encoding)
|
73
73
|
|
74
74
|
def test_reopen_logs_renamed_with_internal_encoding
|
@@ -94,7 +94,6 @@ class TestUtil < Test::Unit::TestCase
|
|
94
94
|
}
|
95
95
|
}
|
96
96
|
}
|
97
|
-
|
97
|
+
tmp.close!
|
98
98
|
end if STDIN.respond_to?(:external_encoding)
|
99
|
-
|
100
99
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 47
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 4.
|
8
|
+
- 4
|
9
|
+
- 0
|
10
|
+
version: 4.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Unicorn hackers
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-10-11 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rack
|
@@ -226,43 +226,13 @@ files:
|
|
226
226
|
- t/detach.ru
|
227
227
|
- t/env.ru
|
228
228
|
- t/heartbeat-timeout.ru
|
229
|
+
- t/listener_names.ru
|
229
230
|
- t/my-tap-lib.sh
|
230
231
|
- t/oob_gc.ru
|
231
232
|
- t/oob_gc_path.ru
|
232
233
|
- t/pid.ru
|
233
234
|
- t/preread_input.ru
|
234
235
|
- t/rack-input-tests.ru
|
235
|
-
- t/rails3-app/.gitignore
|
236
|
-
- t/rails3-app/Gemfile
|
237
|
-
- t/rails3-app/Rakefile
|
238
|
-
- t/rails3-app/app/controllers/application_controller.rb
|
239
|
-
- t/rails3-app/app/helpers/application_helper.rb
|
240
|
-
- t/rails3-app/app/views/layouts/application.html.erb
|
241
|
-
- t/rails3-app/config.ru
|
242
|
-
- t/rails3-app/config/application.rb
|
243
|
-
- t/rails3-app/config/boot.rb
|
244
|
-
- t/rails3-app/config/database.yml
|
245
|
-
- t/rails3-app/config/environment.rb
|
246
|
-
- t/rails3-app/config/environments/development.rb
|
247
|
-
- t/rails3-app/config/environments/production.rb
|
248
|
-
- t/rails3-app/config/environments/test.rb
|
249
|
-
- t/rails3-app/config/initializers/backtrace_silencers.rb
|
250
|
-
- t/rails3-app/config/initializers/inflections.rb
|
251
|
-
- t/rails3-app/config/initializers/mime_types.rb
|
252
|
-
- t/rails3-app/config/initializers/secret_token.rb
|
253
|
-
- t/rails3-app/config/initializers/session_store.rb
|
254
|
-
- t/rails3-app/config/locales/en.yml
|
255
|
-
- t/rails3-app/config/routes.rb
|
256
|
-
- t/rails3-app/db/seeds.rb
|
257
|
-
- t/rails3-app/doc/README_FOR_APP
|
258
|
-
- t/rails3-app/lib/tasks/.gitkeep
|
259
|
-
- t/rails3-app/public/404.html
|
260
|
-
- t/rails3-app/public/500.html
|
261
|
-
- t/rails3-app/public/x.txt
|
262
|
-
- t/rails3-app/script/rails
|
263
|
-
- t/rails3-app/test/performance/browsing_test.rb
|
264
|
-
- t/rails3-app/test/test_helper.rb
|
265
|
-
- t/rails3-app/vendor/plugins/.gitkeep
|
266
236
|
- t/sslgen.sh
|
267
237
|
- t/t0000-http-basic.sh
|
268
238
|
- t/t0001-reload-bad-config.sh
|
@@ -292,20 +262,15 @@ files:
|
|
292
262
|
- t/t0019-max_header_len.sh
|
293
263
|
- t/t0020-at_exit-handler.sh
|
294
264
|
- t/t0021-process_detach.sh
|
265
|
+
- t/t0022-listener_names-preload_app.sh
|
295
266
|
- t/t0100-rack-input-tests.sh
|
296
267
|
- t/t0116-client_body_buffer_size.sh
|
297
268
|
- t/t0116.ru
|
298
|
-
- t/t0300-rails3-basic.sh
|
299
|
-
- t/t0301-rails3-missing-config-ru.sh
|
300
|
-
- t/t0302-rails3-alt-working_directory.sh
|
301
|
-
- t/t0303-rails3-alt-working_directory_config.ru.sh
|
302
|
-
- t/t0304-rails3-alt-working_directory_no_embed_cli.sh
|
303
269
|
- t/t0600-https-server-basic.sh
|
304
270
|
- t/t9000-preread-input.sh
|
305
271
|
- t/t9001-oob_gc.sh
|
306
272
|
- t/t9002-oob_gc-path.sh
|
307
273
|
- t/test-lib.sh
|
308
|
-
- t/test-rails3.sh
|
309
274
|
- t/write-on-close.ru
|
310
275
|
- test/aggregate.rb
|
311
276
|
- test/benchmark/README
|
@@ -313,67 +278,6 @@ files:
|
|
313
278
|
- test/benchmark/stack.ru
|
314
279
|
- test/exec/README
|
315
280
|
- test/exec/test_exec.rb
|
316
|
-
- test/rails/app-1.2.3/.gitignore
|
317
|
-
- test/rails/app-1.2.3/Rakefile
|
318
|
-
- test/rails/app-1.2.3/app/controllers/application.rb
|
319
|
-
- test/rails/app-1.2.3/app/controllers/foo_controller.rb
|
320
|
-
- test/rails/app-1.2.3/app/helpers/application_helper.rb
|
321
|
-
- test/rails/app-1.2.3/config/boot.rb
|
322
|
-
- test/rails/app-1.2.3/config/database.yml
|
323
|
-
- test/rails/app-1.2.3/config/environment.rb
|
324
|
-
- test/rails/app-1.2.3/config/environments/development.rb
|
325
|
-
- test/rails/app-1.2.3/config/environments/production.rb
|
326
|
-
- test/rails/app-1.2.3/config/routes.rb
|
327
|
-
- test/rails/app-1.2.3/db/.gitignore
|
328
|
-
- test/rails/app-1.2.3/log/.gitignore
|
329
|
-
- test/rails/app-1.2.3/public/404.html
|
330
|
-
- test/rails/app-1.2.3/public/500.html
|
331
|
-
- test/rails/app-2.0.2/.gitignore
|
332
|
-
- test/rails/app-2.0.2/Rakefile
|
333
|
-
- test/rails/app-2.0.2/app/controllers/application.rb
|
334
|
-
- test/rails/app-2.0.2/app/controllers/foo_controller.rb
|
335
|
-
- test/rails/app-2.0.2/app/helpers/application_helper.rb
|
336
|
-
- test/rails/app-2.0.2/config/boot.rb
|
337
|
-
- test/rails/app-2.0.2/config/database.yml
|
338
|
-
- test/rails/app-2.0.2/config/environment.rb
|
339
|
-
- test/rails/app-2.0.2/config/environments/development.rb
|
340
|
-
- test/rails/app-2.0.2/config/environments/production.rb
|
341
|
-
- test/rails/app-2.0.2/config/routes.rb
|
342
|
-
- test/rails/app-2.0.2/db/.gitignore
|
343
|
-
- test/rails/app-2.0.2/log/.gitignore
|
344
|
-
- test/rails/app-2.0.2/public/404.html
|
345
|
-
- test/rails/app-2.0.2/public/500.html
|
346
|
-
- test/rails/app-2.1.2/.gitignore
|
347
|
-
- test/rails/app-2.1.2/Rakefile
|
348
|
-
- test/rails/app-2.1.2/app/controllers/application.rb
|
349
|
-
- test/rails/app-2.1.2/app/controllers/foo_controller.rb
|
350
|
-
- test/rails/app-2.1.2/app/helpers/application_helper.rb
|
351
|
-
- test/rails/app-2.1.2/config/boot.rb
|
352
|
-
- test/rails/app-2.1.2/config/database.yml
|
353
|
-
- test/rails/app-2.1.2/config/environment.rb
|
354
|
-
- test/rails/app-2.1.2/config/environments/development.rb
|
355
|
-
- test/rails/app-2.1.2/config/environments/production.rb
|
356
|
-
- test/rails/app-2.1.2/config/routes.rb
|
357
|
-
- test/rails/app-2.1.2/db/.gitignore
|
358
|
-
- test/rails/app-2.1.2/log/.gitignore
|
359
|
-
- test/rails/app-2.1.2/public/404.html
|
360
|
-
- test/rails/app-2.1.2/public/500.html
|
361
|
-
- test/rails/app-2.2.2/.gitignore
|
362
|
-
- test/rails/app-2.2.2/Rakefile
|
363
|
-
- test/rails/app-2.2.2/app/controllers/application.rb
|
364
|
-
- test/rails/app-2.2.2/app/controllers/foo_controller.rb
|
365
|
-
- test/rails/app-2.2.2/app/helpers/application_helper.rb
|
366
|
-
- test/rails/app-2.2.2/config/boot.rb
|
367
|
-
- test/rails/app-2.2.2/config/database.yml
|
368
|
-
- test/rails/app-2.2.2/config/environment.rb
|
369
|
-
- test/rails/app-2.2.2/config/environments/development.rb
|
370
|
-
- test/rails/app-2.2.2/config/environments/production.rb
|
371
|
-
- test/rails/app-2.2.2/config/routes.rb
|
372
|
-
- test/rails/app-2.2.2/db/.gitignore
|
373
|
-
- test/rails/app-2.2.2/log/.gitignore
|
374
|
-
- test/rails/app-2.2.2/public/404.html
|
375
|
-
- test/rails/app-2.2.2/public/500.html
|
376
|
-
- test/rails/test_rails.rb
|
377
281
|
- test/test_helper.rb
|
378
282
|
- test/unit/test_configurator.rb
|
379
283
|
- test/unit/test_droplet.rb
|
data/t/rails3-app/.gitignore
DELETED
data/t/rails3-app/Gemfile
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
source 'http://rubygems.org'
|
2
|
-
|
3
|
-
# gem 'rails', '3.0.0'
|
4
|
-
|
5
|
-
# Bundle edge Rails instead:
|
6
|
-
# gem 'rails', :git => 'git://github.com/rails/rails.git'
|
7
|
-
|
8
|
-
# gem 'sqlite3-ruby', :require => 'sqlite3'
|
9
|
-
|
10
|
-
# Use unicorn as the web server
|
11
|
-
# gem 'unicorn'
|
12
|
-
|
13
|
-
# Deploy with Capistrano
|
14
|
-
# gem 'capistrano'
|
15
|
-
|
16
|
-
# Bundle the extra gems:
|
17
|
-
# gem 'bj'
|
18
|
-
# gem 'nokogiri', '1.4.1'
|
19
|
-
# gem 'sqlite3-ruby', :require => 'sqlite3'
|
20
|
-
# gem 'aws-s3', :require => 'aws/s3'
|
21
|
-
|
22
|
-
# Bundle gems for certain environments:
|
23
|
-
# gem 'rspec', :group => :test
|
24
|
-
# group :test do
|
25
|
-
# gem 'webrat'
|
26
|
-
# end
|
data/t/rails3-app/Rakefile
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
2
|
-
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
3
|
-
|
4
|
-
require File.expand_path('../config/application', __FILE__)
|
5
|
-
|
6
|
-
require 'rake'
|
7
|
-
require 'rake/testtask'
|
8
|
-
require 'rake/rdoctask'
|
9
|
-
|
10
|
-
Rails::Application.load_tasks
|
data/t/rails3-app/config.ru
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
# If you have a Gemfile, require the gems listed there, including any gems
|
6
|
-
# you've limited to :test, :development, or :production.
|
7
|
-
Bundler.require(:default, Rails.env) if defined?(Bundler)
|
8
|
-
|
9
|
-
module App
|
10
|
-
class Application < Rails::Application
|
11
|
-
# Settings in config/environments/* take precedence over those specified here.
|
12
|
-
# Application configuration should go into files in config/initializers
|
13
|
-
# -- all .rb files in that directory are automatically loaded.
|
14
|
-
|
15
|
-
# Add additional load paths for your own custom dirs
|
16
|
-
# config.load_paths += %W( #{config.root}/extras )
|
17
|
-
|
18
|
-
# Only load the plugins named here, in the order given (default is alphabetical).
|
19
|
-
# :all can be used as a placeholder for all plugins not explicitly named
|
20
|
-
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
21
|
-
|
22
|
-
# Activate observers that should always be running
|
23
|
-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
24
|
-
|
25
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
26
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
27
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
28
|
-
|
29
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
30
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
31
|
-
# config.i18n.default_locale = :de
|
32
|
-
|
33
|
-
# Configure generators values. Many other options are available, be sure to check the documentation.
|
34
|
-
# config.generators do |g|
|
35
|
-
# g.orm :active_record
|
36
|
-
# g.template_engine :erb
|
37
|
-
# g.test_framework :test_unit, :fixture => true
|
38
|
-
# end
|
39
|
-
|
40
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
41
|
-
config.encoding = "utf-8"
|
42
|
-
|
43
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
44
|
-
config.filter_parameters += [:password]
|
45
|
-
end
|
46
|
-
end
|
data/t/rails3-app/config/boot.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3-ruby (not necessary on OS X Leopard)
|
3
|
-
development:
|
4
|
-
adapter: sqlite3
|
5
|
-
database: db/development.sqlite3
|
6
|
-
pool: 5
|
7
|
-
timeout: 5000
|
8
|
-
|
9
|
-
# Warning: The database defined as "test" will be erased and
|
10
|
-
# re-generated from your development database when you run "rake".
|
11
|
-
# Do not set this db to the same as development or production.
|
12
|
-
test:
|
13
|
-
adapter: sqlite3
|
14
|
-
database: db/test.sqlite3
|
15
|
-
pool: 5
|
16
|
-
timeout: 5000
|
17
|
-
|
18
|
-
production:
|
19
|
-
adapter: sqlite3
|
20
|
-
database: db/production.sqlite3
|
21
|
-
pool: 5
|
22
|
-
timeout: 5000
|
@@ -1,19 +0,0 @@
|
|
1
|
-
App::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/environment.rb
|
3
|
-
|
4
|
-
# In the development environment your application's code is reloaded on
|
5
|
-
# every request. This slows down response time but is perfect for development
|
6
|
-
# since you don't have to restart the webserver when you make code changes.
|
7
|
-
config.cache_classes = false
|
8
|
-
|
9
|
-
# Log error messages when you accidentally call methods on nil.
|
10
|
-
config.whiny_nils = true
|
11
|
-
|
12
|
-
# Show full error reports and disable caching
|
13
|
-
config.consider_all_requests_local = true
|
14
|
-
config.action_view.debug_rjs = true
|
15
|
-
config.action_controller.perform_caching = false
|
16
|
-
|
17
|
-
# Don't care if the mailer can't send
|
18
|
-
config.action_mailer.raise_delivery_errors = false
|
19
|
-
end
|
@@ -1,42 +0,0 @@
|
|
1
|
-
App::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/environment.rb
|
3
|
-
|
4
|
-
# The production environment is meant for finished, "live" apps.
|
5
|
-
# Code is not reloaded between requests
|
6
|
-
config.cache_classes = true
|
7
|
-
|
8
|
-
# Full error reports are disabled and caching is turned on
|
9
|
-
config.consider_all_requests_local = false
|
10
|
-
config.action_controller.perform_caching = true
|
11
|
-
|
12
|
-
# Specifies the header that your server uses for sending files
|
13
|
-
config.action_dispatch.x_sendfile_header = "X-Sendfile"
|
14
|
-
|
15
|
-
# For nginx:
|
16
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
|
17
|
-
|
18
|
-
# If you have no front-end server that supports something like X-Sendfile,
|
19
|
-
# just comment this out and Rails will serve the files
|
20
|
-
|
21
|
-
# See everything in the log (default is :info)
|
22
|
-
# config.log_level = :debug
|
23
|
-
|
24
|
-
# Use a different logger for distributed setups
|
25
|
-
# config.logger = SyslogLogger.new
|
26
|
-
|
27
|
-
# Use a different cache store in production
|
28
|
-
# config.cache_store = :mem_cache_store
|
29
|
-
|
30
|
-
# Disable Rails's static asset server
|
31
|
-
# In production, Apache or nginx will already do this
|
32
|
-
config.serve_static_assets = false
|
33
|
-
|
34
|
-
# Enable serving of images, stylesheets, and javascripts from an asset server
|
35
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
36
|
-
|
37
|
-
# Disable delivery errors, bad email addresses will be ignored
|
38
|
-
# config.action_mailer.raise_delivery_errors = false
|
39
|
-
|
40
|
-
# Enable threaded mode
|
41
|
-
# config.threadsafe!
|
42
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
App::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/environment.rb
|
3
|
-
|
4
|
-
# The test environment is used exclusively to run your application's
|
5
|
-
# test suite. You never need to work with it otherwise. Remember that
|
6
|
-
# your test database is "scratch space" for the test suite and is wiped
|
7
|
-
# and recreated between test runs. Don't rely on the data there!
|
8
|
-
config.cache_classes = true
|
9
|
-
|
10
|
-
# Log error messages when you accidentally call methods on nil.
|
11
|
-
config.whiny_nils = true
|
12
|
-
|
13
|
-
# Show full error reports and disable caching
|
14
|
-
config.consider_all_requests_local = true
|
15
|
-
config.action_controller.perform_caching = false
|
16
|
-
|
17
|
-
# Raise exceptions instead of rendering exception templates
|
18
|
-
config.action_dispatch.show_exceptions = false
|
19
|
-
|
20
|
-
# Disable request forgery protection in test environment
|
21
|
-
config.action_controller.allow_forgery_protection = false
|
22
|
-
|
23
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
24
|
-
# The :test delivery method accumulates sent emails in the
|
25
|
-
# ActionMailer::Base.deliveries array.
|
26
|
-
config.action_mailer.delivery_method = :test
|
27
|
-
|
28
|
-
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
29
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
30
|
-
# like if you have constraints or database-specific column types
|
31
|
-
# config.active_record.schema_format = :sql
|
32
|
-
end
|