totoro 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/lib/totoro/base_queue.rb +4 -4
  3. data/lib/totoro/version.rb +1 -1
  4. metadata +1 -97
  5. data/pkg/totoro-1.0.5/CODE_OF_CONDUCT.md +0 -74
  6. data/pkg/totoro-1.0.5/Dockerfile +0 -14
  7. data/pkg/totoro-1.0.5/Gemfile +0 -8
  8. data/pkg/totoro-1.0.5/Gemfile.lock +0 -68
  9. data/pkg/totoro-1.0.5/LICENSE.txt +0 -21
  10. data/pkg/totoro-1.0.5/README.md +0 -169
  11. data/pkg/totoro-1.0.5/Rakefile +0 -8
  12. data/pkg/totoro-1.0.5/bin/console +0 -15
  13. data/pkg/totoro-1.0.5/bin/setup +0 -8
  14. data/pkg/totoro-1.0.5/bin/totoro +0 -16
  15. data/pkg/totoro-1.0.5/docker-compose.yml +0 -43
  16. data/pkg/totoro-1.0.5/lib/generators/totoro/config_generator.rb +0 -12
  17. data/pkg/totoro-1.0.5/lib/generators/totoro/init_generator.rb +0 -14
  18. data/pkg/totoro-1.0.5/lib/generators/totoro/templates/create_totoro_failed_messages.rb +0 -12
  19. data/pkg/totoro-1.0.5/lib/generators/totoro/templates/initializer.rb +0 -1
  20. data/pkg/totoro-1.0.5/lib/generators/totoro/templates/totoro.yml +0 -33
  21. data/pkg/totoro-1.0.5/lib/generators/totoro/templates/update_totoro_failed_messages.rb +0 -6
  22. data/pkg/totoro-1.0.5/lib/generators/totoro/templates/worker.rb.erb +0 -10
  23. data/pkg/totoro-1.0.5/lib/generators/totoro/update_generator.rb +0 -12
  24. data/pkg/totoro-1.0.5/lib/generators/totoro/worker_generator.rb +0 -17
  25. data/pkg/totoro-1.0.5/lib/totoro.rb +0 -21
  26. data/pkg/totoro-1.0.5/lib/totoro/base_queue.rb +0 -44
  27. data/pkg/totoro-1.0.5/lib/totoro/base_worker.rb +0 -61
  28. data/pkg/totoro-1.0.5/lib/totoro/config.rb +0 -44
  29. data/pkg/totoro-1.0.5/lib/totoro/errors/connection_break_error.rb +0 -6
  30. data/pkg/totoro-1.0.5/lib/totoro/errors/need_queue_name_error.rb +0 -5
  31. data/pkg/totoro-1.0.5/lib/totoro/initializer.rb +0 -39
  32. data/pkg/totoro-1.0.5/lib/totoro/message_resender.rb +0 -17
  33. data/pkg/totoro-1.0.5/lib/totoro/models/totoro_failed_message.rb +0 -8
  34. data/pkg/totoro-1.0.5/lib/totoro/railtie.rb +0 -15
  35. data/pkg/totoro-1.0.5/lib/totoro/services/broadcast_service.rb +0 -33
  36. data/pkg/totoro-1.0.5/lib/totoro/services/enqueue_service.rb +0 -38
  37. data/pkg/totoro-1.0.5/lib/totoro/services/resend_service.rb +0 -19
  38. data/pkg/totoro-1.0.5/lib/totoro/services/subscribe_service.rb +0 -34
  39. data/pkg/totoro-1.0.5/lib/totoro/tasks/resend_message.rake +0 -8
  40. data/pkg/totoro-1.0.5/lib/totoro/utils.rb +0 -22
  41. data/pkg/totoro-1.0.5/lib/totoro/version.rb +0 -5
  42. data/pkg/totoro-1.0.5/pkg/totoro-1.0.4.gem +0 -0
  43. data/pkg/totoro-1.0.5/spec/spec_helper.rb +0 -14
  44. data/pkg/totoro-1.0.5/spec/totoro_spec.rb +0 -9
  45. data/pkg/totoro-1.0.5/test/rabbitmq_commands.txt +0 -6
  46. data/pkg/totoro-1.0.5/test/totoro_test/Gemfile +0 -43
  47. data/pkg/totoro-1.0.5/test/totoro_test/Gemfile.lock +0 -157
  48. data/pkg/totoro-1.0.5/test/totoro_test/README.md +0 -24
  49. data/pkg/totoro-1.0.5/test/totoro_test/Rakefile +0 -6
  50. data/pkg/totoro-1.0.5/test/totoro_test/app/channels/application_cable/channel.rb +0 -4
  51. data/pkg/totoro-1.0.5/test/totoro_test/app/channels/application_cable/connection.rb +0 -4
  52. data/pkg/totoro-1.0.5/test/totoro_test/app/controllers/application_controller.rb +0 -2
  53. data/pkg/totoro-1.0.5/test/totoro_test/app/jobs/application_job.rb +0 -2
  54. data/pkg/totoro-1.0.5/test/totoro_test/app/mailers/application_mailer.rb +0 -4
  55. data/pkg/totoro-1.0.5/test/totoro_test/app/models/application_record.rb +0 -3
  56. data/pkg/totoro-1.0.5/test/totoro_test/app/models/worker/example_queue.rb +0 -10
  57. data/pkg/totoro-1.0.5/test/totoro_test/app/models/worker/exchange_queue.rb +0 -10
  58. data/pkg/totoro-1.0.5/test/totoro_test/app/models/worker/shu_queue.rb +0 -10
  59. data/pkg/totoro-1.0.5/test/totoro_test/app/services/bench_mark.txt +0 -7
  60. data/pkg/totoro-1.0.5/test/totoro_test/app/services/load_test.rb +0 -19
  61. data/pkg/totoro-1.0.5/test/totoro_test/app/views/layouts/mailer.html.erb +0 -13
  62. data/pkg/totoro-1.0.5/test/totoro_test/app/views/layouts/mailer.text.erb +0 -1
  63. data/pkg/totoro-1.0.5/test/totoro_test/bin/bundle +0 -3
  64. data/pkg/totoro-1.0.5/test/totoro_test/bin/delayed_job +0 -5
  65. data/pkg/totoro-1.0.5/test/totoro_test/bin/rails +0 -9
  66. data/pkg/totoro-1.0.5/test/totoro_test/bin/rake +0 -9
  67. data/pkg/totoro-1.0.5/test/totoro_test/bin/setup +0 -34
  68. data/pkg/totoro-1.0.5/test/totoro_test/bin/spring +0 -17
  69. data/pkg/totoro-1.0.5/test/totoro_test/bin/update +0 -29
  70. data/pkg/totoro-1.0.5/test/totoro_test/config.ru +0 -5
  71. data/pkg/totoro-1.0.5/test/totoro_test/config/application.rb +0 -34
  72. data/pkg/totoro-1.0.5/test/totoro_test/config/boot.rb +0 -3
  73. data/pkg/totoro-1.0.5/test/totoro_test/config/cable.yml +0 -10
  74. data/pkg/totoro-1.0.5/test/totoro_test/config/database.yml +0 -55
  75. data/pkg/totoro-1.0.5/test/totoro_test/config/environment.rb +0 -5
  76. data/pkg/totoro-1.0.5/test/totoro_test/config/environments/development.rb +0 -47
  77. data/pkg/totoro-1.0.5/test/totoro_test/config/environments/production.rb +0 -82
  78. data/pkg/totoro-1.0.5/test/totoro_test/config/environments/test.rb +0 -41
  79. data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/application_controller_renderer.rb +0 -8
  80. data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/backtrace_silencers.rb +0 -7
  81. data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/cors.rb +0 -16
  82. data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/filter_parameter_logging.rb +0 -4
  83. data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/inflections.rb +0 -16
  84. data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/mime_types.rb +0 -4
  85. data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/totoro.rb +0 -1
  86. data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/wrap_parameters.rb +0 -14
  87. data/pkg/totoro-1.0.5/test/totoro_test/config/locales/en.yml +0 -33
  88. data/pkg/totoro-1.0.5/test/totoro_test/config/puma.rb +0 -56
  89. data/pkg/totoro-1.0.5/test/totoro_test/config/routes.rb +0 -3
  90. data/pkg/totoro-1.0.5/test/totoro_test/config/secrets.yml +0 -32
  91. data/pkg/totoro-1.0.5/test/totoro_test/config/spring.rb +0 -6
  92. data/pkg/totoro-1.0.5/test/totoro_test/config/totoro.yml +0 -42
  93. data/pkg/totoro-1.0.5/test/totoro_test/db/migrate/20181019041208_create_delayed_jobs.rb +0 -22
  94. data/pkg/totoro-1.0.5/test/totoro_test/db/migrate/20181019070846_create_totoro_failed_messages.rb +0 -11
  95. data/pkg/totoro-1.0.5/test/totoro_test/db/migrate/20181228033422_update_totoro_failed_messages.rb +0 -5
  96. data/pkg/totoro-1.0.5/test/totoro_test/db/schema.rb +0 -42
  97. data/pkg/totoro-1.0.5/test/totoro_test/db/seeds.rb +0 -7
  98. data/pkg/totoro-1.0.5/test/totoro_test/public/robots.txt +0 -1
  99. data/pkg/totoro-1.0.5/test/totoro_test/test/test_helper.rb +0 -10
  100. data/pkg/totoro-1.0.5/totoro.gemspec +0 -29
@@ -1,24 +0,0 @@
1
- # README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
@@ -1,6 +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_relative 'config/application'
5
-
6
- Rails.application.load_tasks
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Channel < ActionCable::Channel::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Connection < ActionCable::Connection::Base
3
- end
4
- end
@@ -1,2 +0,0 @@
1
- class ApplicationController < ActionController::API
2
- end
@@ -1,2 +0,0 @@
1
- class ApplicationJob < ActiveJob::Base
2
- end
@@ -1,4 +0,0 @@
1
- class ApplicationMailer < ActionMailer::Base
2
- default from: 'from@example.com'
3
- layout 'mailer'
4
- end
@@ -1,3 +0,0 @@
1
- class ApplicationRecord < ActiveRecord::Base
2
- self.abstract_class = true
3
- end
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Worker
4
- class ExampleQueue < Totoro::BaseWorker
5
- setup queue_name: 'example_queue'
6
- def process(payload, _metadata, _delivery_info)
7
- p payload
8
- end
9
- end
10
- end
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Worker
4
- class ExchangeQueue < Totoro::BaseWorker
5
- setup queue_name: 'exchange_queue'
6
- def process(payload, metadata, delivery_info)
7
- p payload
8
- end
9
- end
10
- end
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Worker
4
- class ShuQueue < Totoro::BaseWorker
5
- setup queue_name: 'shu_queue'
6
- def process(payload, metadata, delivery_info)
7
- p payload
8
- end
9
- end
10
- end
@@ -1,7 +0,0 @@
1
- with out put
2
- 1000
3
- 1.0696876
4
- 9.3701257
5
- 10000
6
- 10.0278923
7
- 85.1188306
@@ -1,19 +0,0 @@
1
- class LoadTest
2
- def test_with_channel
3
- start_time = Time.now
4
- for i in 0..1000
5
- Totoro::Queue.enqueue_with_new_channel('example_queue', {shu: i})
6
- end
7
- end_time = Time.now
8
- p (end_time - start_time)
9
- end
10
-
11
- def test_without_channel
12
- start_time = Time.now
13
- for i in 0..1000
14
- Totoro::Queue.enqueue('example_queue', {shu: i})
15
- end
16
- end_time = Time.now
17
- p (end_time - start_time)
18
- end
19
- end
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
- <style>
6
- /* Email styles need to be inline */
7
- </style>
8
- </head>
9
-
10
- <body>
11
- <%= yield %>
12
- </body>
13
- </html>
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
3
- load Gem.bin_path('bundler', 'bundle')
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment'))
4
- require 'delayed/command'
5
- Delayed::Command.new(ARGV).daemonize
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path('spring', __dir__)
4
- rescue LoadError => e
5
- raise unless e.message.include?('spring')
6
- end
7
- APP_PATH = File.expand_path('../config/application', __dir__)
8
- require_relative '../config/boot'
9
- require 'rails/commands'
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path('spring', __dir__)
4
- rescue LoadError => e
5
- raise unless e.message.include?('spring')
6
- end
7
- require_relative '../config/boot'
8
- require 'rake'
9
- Rake.application.run
@@ -1,34 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'pathname'
3
- require 'fileutils'
4
- include FileUtils
5
-
6
- # path to your application root.
7
- APP_ROOT = Pathname.new File.expand_path('..', __dir__)
8
-
9
- def system!(*args)
10
- system(*args) || abort("\n== Command #{args} failed ==")
11
- end
12
-
13
- chdir APP_ROOT do
14
- # This script is a starting point to setup your application.
15
- # Add necessary setup steps to this file.
16
-
17
- puts '== Installing dependencies =='
18
- system! 'gem install bundler --conservative'
19
- system('bundle check') || system!('bundle install')
20
-
21
- # puts "\n== Copying sample files =="
22
- # unless File.exist?('config/database.yml')
23
- # cp 'config/database.yml.sample', 'config/database.yml'
24
- # end
25
-
26
- puts "\n== Preparing database =="
27
- system! 'bin/rails db:setup'
28
-
29
- puts "\n== Removing old logs and tempfiles =="
30
- system! 'bin/rails log:clear tmp:clear'
31
-
32
- puts "\n== Restarting application server =="
33
- system! 'bin/rails restart'
34
- end
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # This file loads spring without using Bundler, in order to be fast.
4
- # It gets overwritten when you run the `spring binstub` command.
5
-
6
- unless defined?(Spring)
7
- require 'rubygems'
8
- require 'bundler'
9
-
10
- lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
11
- spring = lockfile.specs.detect { |spec| spec.name == 'spring' }
12
- if spring
13
- Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
14
- gem 'spring', spring.version
15
- require 'spring/binstub'
16
- end
17
- end
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'pathname'
3
- require 'fileutils'
4
- include FileUtils
5
-
6
- # path to your application root.
7
- APP_ROOT = Pathname.new File.expand_path('..', __dir__)
8
-
9
- def system!(*args)
10
- system(*args) || abort("\n== Command #{args} failed ==")
11
- end
12
-
13
- chdir APP_ROOT do
14
- # This script is a way to update your development environment automatically.
15
- # Add necessary update steps to this file.
16
-
17
- puts '== Installing dependencies =='
18
- system! 'gem install bundler --conservative'
19
- system('bundle check') || system!('bundle install')
20
-
21
- puts "\n== Updating database =="
22
- system! 'bin/rails db:migrate'
23
-
24
- puts "\n== Removing old logs and tempfiles =="
25
- system! 'bin/rails log:clear tmp:clear'
26
-
27
- puts "\n== Restarting application server =="
28
- system! 'bin/rails restart'
29
- end
@@ -1,5 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require_relative 'config/environment'
4
-
5
- run Rails.application
@@ -1,34 +0,0 @@
1
- require_relative 'boot'
2
-
3
- require 'rails'
4
- # Pick the frameworks you want:
5
- require 'active_model/railtie'
6
- require 'active_job/railtie'
7
- require 'active_record/railtie'
8
- require 'action_controller/railtie'
9
- require 'action_mailer/railtie'
10
- require 'action_view/railtie'
11
- require 'action_cable/engine'
12
- # require "sprockets/railtie"
13
- require 'rails/test_unit/railtie'
14
-
15
- # Require the gems listed in Gemfile, including any gems
16
- # you've limited to :test, :development, or :production.
17
- Bundler.require(*Rails.groups)
18
-
19
- module TotoroTest
20
- class Application < Rails::Application
21
- # Initialize configuration defaults for originally generated Rails version.
22
- config.load_defaults 5.1
23
-
24
- # Settings in config/environments/* take precedence over those specified here.
25
- # Application configuration should go into files in config/initializers
26
- # -- all .rb files in that directory are automatically loaded.
27
-
28
- # Only loads a smaller set of middleware suitable for API only apps.
29
- # Middleware like session, flash, cookies can be added back manually.
30
- # Skip views, helpers and assets when generating a new resource.
31
- config.api_only = true
32
- config.active_job.queue_adapter = :delayed_job
33
- end
34
- end
@@ -1,3 +0,0 @@
1
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
2
-
3
- require 'bundler/setup' # Set up gems listed in the Gemfile.
@@ -1,10 +0,0 @@
1
- development:
2
- adapter: async
3
-
4
- test:
5
- adapter: async
6
-
7
- production:
8
- adapter: redis
9
- url: redis://localhost:6379/1
10
- channel_prefix: totoro_test_production
@@ -1,55 +0,0 @@
1
- # MySQL. Versions 5.0 and up are supported.
2
- #
3
- # Install the MySQL driver
4
- # gem install mysql2
5
- #
6
- # Ensure the MySQL gem is defined in your Gemfile
7
- # gem 'mysql2'
8
- #
9
- # And be sure to use new-style password hashing:
10
- # http://dev.mysql.com/doc/refman/5.7/en/old-client.html
11
- #
12
- default: &default
13
- adapter: postgresql
14
- encoding: unicode
15
- pool: 5
16
- username: <%= ENV['POSTGRES_USER'] %>
17
- password: <%= ENV['POSTGRES_PASSWORD'] %>
18
- host: <%= ENV['POSTGRES_HOST'] %>
19
-
20
- development:
21
- <<: *default
22
- database: totoro_development
23
-
24
- # Warning: The database defined as "test" will be erased and
25
- # re-generated from your development database when you run "rake".
26
- # Do not set this db to the same as development or production.
27
- test:
28
- <<: *default
29
- database: totoro_test
30
-
31
- # As with config/secrets.yml, you never want to store sensitive information,
32
- # like your database password, in your source code. If your source code is
33
- # ever seen by anyone, they now have access to your database.
34
- #
35
- # Instead, provide the password as a unix environment variable when you boot
36
- # the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
37
- # for a full rundown on how to provide these environment variables in a
38
- # production deployment.
39
- #
40
- # On Heroku and other platform providers, you may have a full connection URL
41
- # available as an environment variable. For example:
42
- #
43
- # DATABASE_URL="mysql2://myuser:mypass@localhost/somedatabase"
44
- #
45
- # You can use this database configuration with:
46
- #
47
- # production:
48
- # url: <%= ENV['DATABASE_URL'] %>
49
- #
50
- production:
51
- <<: *default
52
- database: <%= ENV['DATABASE_NAME'] %>
53
- host: <%= ENV['DATABASE_HOST'] %>
54
- username: <%= ENV['DATABASE_USERNAME'] %>
55
- password: <%= ENV['DATABASE_PASSWORD'] %>
@@ -1,5 +0,0 @@
1
- # Load the Rails application.
2
- require_relative 'application'
3
-
4
- # Initialize the Rails application.
5
- Rails.application.initialize!
@@ -1,47 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.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 web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Do not eager load code on boot.
10
- config.eager_load = false
11
-
12
- # Show full error reports.
13
- config.consider_all_requests_local = true
14
-
15
- # Enable/disable caching. By default caching is disabled.
16
- if Rails.root.join('tmp/caching-dev.txt').exist?
17
- config.action_controller.perform_caching = true
18
-
19
- config.cache_store = :memory_store
20
- config.public_file_server.headers = {
21
- 'Cache-Control' => "public, max-age=#{2.days.seconds.to_i}"
22
- }
23
- else
24
- config.action_controller.perform_caching = false
25
-
26
- config.cache_store = :null_store
27
- end
28
-
29
- # Don't care if the mailer can't send.
30
- config.action_mailer.raise_delivery_errors = false
31
-
32
- config.action_mailer.perform_caching = false
33
-
34
- # Print deprecation notices to the Rails logger.
35
- config.active_support.deprecation = :log
36
-
37
- # Raise an error on page load if there are pending migrations.
38
- config.active_record.migration_error = :page_load
39
- config.logger = Logger.new(STDOUT)
40
-
41
- # Raises error for missing translations
42
- # config.action_view.raise_on_missing_translations = true
43
-
44
- # Use an evented file watcher to asynchronously detect changes in source code,
45
- # routes, locales, etc. This feature depends on the listen gem.
46
- config.file_watcher = ActiveSupport::EventedFileUpdateChecker
47
- end
@@ -1,82 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # Code is not reloaded between requests.
5
- config.cache_classes = true
6
-
7
- # Eager load code on boot. This eager loads most of Rails and
8
- # your application in memory, allowing both threaded web servers
9
- # and those relying on copy on write to perform better.
10
- # Rake tasks automatically ignore this option for performance.
11
- config.eager_load = true
12
-
13
- # Full error reports are disabled and caching is turned on.
14
- config.consider_all_requests_local = false
15
- config.action_controller.perform_caching = true
16
-
17
- # Attempt to read encrypted secrets from `config/secrets.yml.enc`.
18
- # Requires an encryption key in `ENV["RAILS_MASTER_KEY"]` or
19
- # `config/secrets.yml.key`.
20
- config.read_encrypted_secrets = true
21
-
22
- # Disable serving static files from the `/public` folder by default since
23
- # Apache or NGINX already handles this.
24
- config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
25
-
26
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
27
- # config.action_controller.asset_host = 'http://assets.example.com'
28
-
29
- # Specifies the header that your server uses for sending files.
30
- # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
31
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
32
-
33
- # Mount Action Cable outside main process or domain
34
- # config.action_cable.mount_path = nil
35
- # config.action_cable.url = 'wss://example.com/cable'
36
- # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
37
-
38
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
39
- # config.force_ssl = true
40
-
41
- # Use the lowest log level to ensure availability of diagnostic information
42
- # when problems arise.
43
- config.log_level = :info
44
- config.logger = Logger.new(STDOUT)
45
-
46
- # Prepend all log lines with the following tags.
47
- config.log_tags = [:request_id]
48
-
49
- # Use a different cache store in production.
50
- # config.cache_store = :mem_cache_store
51
-
52
- # Use a real queuing backend for Active Job (and separate queues per environment)
53
- # config.active_job.queue_adapter = :resque
54
- # config.active_job.queue_name_prefix = "totoro_test_#{Rails.env}"
55
- config.action_mailer.perform_caching = false
56
-
57
- # Ignore bad email addresses and do not raise email delivery errors.
58
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
59
- # config.action_mailer.raise_delivery_errors = false
60
-
61
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
62
- # the I18n.default_locale when a translation cannot be found).
63
- config.i18n.fallbacks = true
64
-
65
- # Send deprecation notices to registered listeners.
66
- config.active_support.deprecation = :notify
67
-
68
- # Use default logging formatter so that PID and timestamp are not suppressed.
69
- config.log_formatter = ::Logger::Formatter.new
70
-
71
- # Use a different logger for distributed setups.
72
- # require 'syslog/logger'
73
- # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
74
- if ENV['RAILS_LOG_TO_STDOUT'].present?
75
- logger = ActiveSupport::Logger.new(STDOUT)
76
- logger.formatter = config.log_formatter
77
- config.logger = ActiveSupport::TaggedLogging.new(logger)
78
- end
79
-
80
- # Do not dump schema after migrations.
81
- config.active_record.dump_schema_after_migration = false
82
- end