totoro 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/totoro/base_queue.rb +4 -4
- data/lib/totoro/version.rb +1 -1
- metadata +1 -97
- data/pkg/totoro-1.0.5/CODE_OF_CONDUCT.md +0 -74
- data/pkg/totoro-1.0.5/Dockerfile +0 -14
- data/pkg/totoro-1.0.5/Gemfile +0 -8
- data/pkg/totoro-1.0.5/Gemfile.lock +0 -68
- data/pkg/totoro-1.0.5/LICENSE.txt +0 -21
- data/pkg/totoro-1.0.5/README.md +0 -169
- data/pkg/totoro-1.0.5/Rakefile +0 -8
- data/pkg/totoro-1.0.5/bin/console +0 -15
- data/pkg/totoro-1.0.5/bin/setup +0 -8
- data/pkg/totoro-1.0.5/bin/totoro +0 -16
- data/pkg/totoro-1.0.5/docker-compose.yml +0 -43
- data/pkg/totoro-1.0.5/lib/generators/totoro/config_generator.rb +0 -12
- data/pkg/totoro-1.0.5/lib/generators/totoro/init_generator.rb +0 -14
- data/pkg/totoro-1.0.5/lib/generators/totoro/templates/create_totoro_failed_messages.rb +0 -12
- data/pkg/totoro-1.0.5/lib/generators/totoro/templates/initializer.rb +0 -1
- data/pkg/totoro-1.0.5/lib/generators/totoro/templates/totoro.yml +0 -33
- data/pkg/totoro-1.0.5/lib/generators/totoro/templates/update_totoro_failed_messages.rb +0 -6
- data/pkg/totoro-1.0.5/lib/generators/totoro/templates/worker.rb.erb +0 -10
- data/pkg/totoro-1.0.5/lib/generators/totoro/update_generator.rb +0 -12
- data/pkg/totoro-1.0.5/lib/generators/totoro/worker_generator.rb +0 -17
- data/pkg/totoro-1.0.5/lib/totoro.rb +0 -21
- data/pkg/totoro-1.0.5/lib/totoro/base_queue.rb +0 -44
- data/pkg/totoro-1.0.5/lib/totoro/base_worker.rb +0 -61
- data/pkg/totoro-1.0.5/lib/totoro/config.rb +0 -44
- data/pkg/totoro-1.0.5/lib/totoro/errors/connection_break_error.rb +0 -6
- data/pkg/totoro-1.0.5/lib/totoro/errors/need_queue_name_error.rb +0 -5
- data/pkg/totoro-1.0.5/lib/totoro/initializer.rb +0 -39
- data/pkg/totoro-1.0.5/lib/totoro/message_resender.rb +0 -17
- data/pkg/totoro-1.0.5/lib/totoro/models/totoro_failed_message.rb +0 -8
- data/pkg/totoro-1.0.5/lib/totoro/railtie.rb +0 -15
- data/pkg/totoro-1.0.5/lib/totoro/services/broadcast_service.rb +0 -33
- data/pkg/totoro-1.0.5/lib/totoro/services/enqueue_service.rb +0 -38
- data/pkg/totoro-1.0.5/lib/totoro/services/resend_service.rb +0 -19
- data/pkg/totoro-1.0.5/lib/totoro/services/subscribe_service.rb +0 -34
- data/pkg/totoro-1.0.5/lib/totoro/tasks/resend_message.rake +0 -8
- data/pkg/totoro-1.0.5/lib/totoro/utils.rb +0 -22
- data/pkg/totoro-1.0.5/lib/totoro/version.rb +0 -5
- data/pkg/totoro-1.0.5/pkg/totoro-1.0.4.gem +0 -0
- data/pkg/totoro-1.0.5/spec/spec_helper.rb +0 -14
- data/pkg/totoro-1.0.5/spec/totoro_spec.rb +0 -9
- data/pkg/totoro-1.0.5/test/rabbitmq_commands.txt +0 -6
- data/pkg/totoro-1.0.5/test/totoro_test/Gemfile +0 -43
- data/pkg/totoro-1.0.5/test/totoro_test/Gemfile.lock +0 -157
- data/pkg/totoro-1.0.5/test/totoro_test/README.md +0 -24
- data/pkg/totoro-1.0.5/test/totoro_test/Rakefile +0 -6
- data/pkg/totoro-1.0.5/test/totoro_test/app/channels/application_cable/channel.rb +0 -4
- data/pkg/totoro-1.0.5/test/totoro_test/app/channels/application_cable/connection.rb +0 -4
- data/pkg/totoro-1.0.5/test/totoro_test/app/controllers/application_controller.rb +0 -2
- data/pkg/totoro-1.0.5/test/totoro_test/app/jobs/application_job.rb +0 -2
- data/pkg/totoro-1.0.5/test/totoro_test/app/mailers/application_mailer.rb +0 -4
- data/pkg/totoro-1.0.5/test/totoro_test/app/models/application_record.rb +0 -3
- data/pkg/totoro-1.0.5/test/totoro_test/app/models/worker/example_queue.rb +0 -10
- data/pkg/totoro-1.0.5/test/totoro_test/app/models/worker/exchange_queue.rb +0 -10
- data/pkg/totoro-1.0.5/test/totoro_test/app/models/worker/shu_queue.rb +0 -10
- data/pkg/totoro-1.0.5/test/totoro_test/app/services/bench_mark.txt +0 -7
- data/pkg/totoro-1.0.5/test/totoro_test/app/services/load_test.rb +0 -19
- data/pkg/totoro-1.0.5/test/totoro_test/app/views/layouts/mailer.html.erb +0 -13
- data/pkg/totoro-1.0.5/test/totoro_test/app/views/layouts/mailer.text.erb +0 -1
- data/pkg/totoro-1.0.5/test/totoro_test/bin/bundle +0 -3
- data/pkg/totoro-1.0.5/test/totoro_test/bin/delayed_job +0 -5
- data/pkg/totoro-1.0.5/test/totoro_test/bin/rails +0 -9
- data/pkg/totoro-1.0.5/test/totoro_test/bin/rake +0 -9
- data/pkg/totoro-1.0.5/test/totoro_test/bin/setup +0 -34
- data/pkg/totoro-1.0.5/test/totoro_test/bin/spring +0 -17
- data/pkg/totoro-1.0.5/test/totoro_test/bin/update +0 -29
- data/pkg/totoro-1.0.5/test/totoro_test/config.ru +0 -5
- data/pkg/totoro-1.0.5/test/totoro_test/config/application.rb +0 -34
- data/pkg/totoro-1.0.5/test/totoro_test/config/boot.rb +0 -3
- data/pkg/totoro-1.0.5/test/totoro_test/config/cable.yml +0 -10
- data/pkg/totoro-1.0.5/test/totoro_test/config/database.yml +0 -55
- data/pkg/totoro-1.0.5/test/totoro_test/config/environment.rb +0 -5
- data/pkg/totoro-1.0.5/test/totoro_test/config/environments/development.rb +0 -47
- data/pkg/totoro-1.0.5/test/totoro_test/config/environments/production.rb +0 -82
- data/pkg/totoro-1.0.5/test/totoro_test/config/environments/test.rb +0 -41
- data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/application_controller_renderer.rb +0 -8
- data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/backtrace_silencers.rb +0 -7
- data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/cors.rb +0 -16
- data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/filter_parameter_logging.rb +0 -4
- data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/inflections.rb +0 -16
- data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/mime_types.rb +0 -4
- data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/totoro.rb +0 -1
- data/pkg/totoro-1.0.5/test/totoro_test/config/initializers/wrap_parameters.rb +0 -14
- data/pkg/totoro-1.0.5/test/totoro_test/config/locales/en.yml +0 -33
- data/pkg/totoro-1.0.5/test/totoro_test/config/puma.rb +0 -56
- data/pkg/totoro-1.0.5/test/totoro_test/config/routes.rb +0 -3
- data/pkg/totoro-1.0.5/test/totoro_test/config/secrets.yml +0 -32
- data/pkg/totoro-1.0.5/test/totoro_test/config/spring.rb +0 -6
- data/pkg/totoro-1.0.5/test/totoro_test/config/totoro.yml +0 -42
- data/pkg/totoro-1.0.5/test/totoro_test/db/migrate/20181019041208_create_delayed_jobs.rb +0 -22
- data/pkg/totoro-1.0.5/test/totoro_test/db/migrate/20181019070846_create_totoro_failed_messages.rb +0 -11
- data/pkg/totoro-1.0.5/test/totoro_test/db/migrate/20181228033422_update_totoro_failed_messages.rb +0 -5
- data/pkg/totoro-1.0.5/test/totoro_test/db/schema.rb +0 -42
- data/pkg/totoro-1.0.5/test/totoro_test/db/seeds.rb +0 -7
- data/pkg/totoro-1.0.5/test/totoro_test/public/robots.txt +0 -1
- data/pkg/totoro-1.0.5/test/totoro_test/test/test_helper.rb +0 -10
- 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,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 +0,0 @@
|
|
1
|
-
<%= yield %>
|
@@ -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,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,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,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,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
|