bnb_blazer 0.3.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/overrides/controllers/blazer/base_controller_override.rb +133 -0
- data/app/views/{blazer → bnb_blazer}/_variables.html.haml +0 -0
- data/app/views/{blazer → bnb_blazer}/checks/_form.html.haml +0 -0
- data/app/views/{blazer → bnb_blazer}/checks/edit.html.haml +0 -0
- data/app/views/{blazer → bnb_blazer}/checks/index.html.haml +0 -0
- data/app/views/{blazer → bnb_blazer}/checks/new.html.haml +0 -0
- data/app/views/{blazer → bnb_blazer}/dashboards/_form.html.haml +0 -0
- data/app/views/{blazer → bnb_blazer}/dashboards/edit.html.haml +0 -0
- data/app/views/{blazer → bnb_blazer}/dashboards/new.html.haml +0 -0
- data/app/views/{blazer → bnb_blazer}/dashboards/show.html.haml +2 -2
- data/app/views/{blazer → bnb_blazer}/queries/_form.html.haml +0 -0
- data/app/views/{blazer → bnb_blazer}/queries/edit.html.haml +0 -0
- data/app/views/{blazer → bnb_blazer}/queries/home.html.haml +0 -0
- data/app/views/{blazer → bnb_blazer}/queries/new.html.haml +0 -0
- data/app/views/{blazer → bnb_blazer}/queries/run.html.haml +0 -0
- data/app/views/{blazer → bnb_blazer}/queries/show.html.haml +2 -2
- data/app/views/layouts/{blazer → bnb_blazer}/_footer.html.haml +0 -0
- data/app/views/layouts/{blazer → bnb_blazer}/_navbar.html.haml +0 -0
- data/app/views/layouts/{blazer → bnb_blazer}/application.html.haml +0 -0
- data/lib/{bnb_blazer/bnb_blazer.rb → bnb_blazer.rb} +5 -1
- data/lib/bnb_blazer/engine.rb +5 -0
- data/lib/bnb_blazer/version.rb +1 -1
- metadata +23 -96
- data/.docker-development-vars +0 -1
- data/.gitignore +0 -31
- data/.rspec +0 -3
- data/.ruby-version +0 -1
- data/.travis.yml +0 -6
- data/Gemfile +0 -54
- data/Gemfile.lock +0 -233
- data/LICENSE.txt +0 -21
- data/README.md +0 -35
- data/app/assets/config/manifest.js +0 -3
- data/app/assets/images/.keep +0 -0
- data/app/assets/images/bnb_intel_logo.png +0 -0
- data/app/assets/stylesheets/application.css +0 -83
- data/app/channels/application_cable/channel.rb +0 -4
- data/app/channels/application_cable/connection.rb +0 -4
- data/app/controllers/application_controller.rb +0 -2
- data/app/controllers/concerns/.keep +0 -0
- data/app/helpers/application_helper.rb +0 -2
- data/app/jobs/application_job.rb +0 -2
- data/app/mailers/application_mailer.rb +0 -4
- data/app/models/application_record.rb +0 -3
- data/app/models/concerns/.keep +0 -0
- data/app/models/user.rb +0 -2
- data/bin/bundle +0 -3
- data/bin/console +0 -14
- data/bin/rails +0 -9
- data/bin/rake +0 -9
- data/bin/setup +0 -36
- data/bin/spring +0 -17
- data/bin/update +0 -31
- data/bin/yarn +0 -11
- data/bnb_blazer.gemspec +0 -28
- data/config.ru +0 -5
- data/config/application.rb +0 -19
- data/config/blazer.yml +0 -79
- data/config/boot.rb +0 -4
- data/config/cable.yml +0 -10
- data/config/credentials.yml.enc +0 -1
- data/config/database.yml +0 -19
- data/config/environment.rb +0 -5
- data/config/environments/development.rb +0 -61
- data/config/environments/production.rb +0 -94
- data/config/environments/test.rb +0 -46
- data/config/initializers/application_controller_renderer.rb +0 -8
- data/config/initializers/assets.rb +0 -14
- data/config/initializers/backtrace_silencers.rb +0 -7
- data/config/initializers/content_security_policy.rb +0 -25
- data/config/initializers/cookies_serializer.rb +0 -5
- data/config/initializers/filter_parameter_logging.rb +0 -4
- data/config/initializers/inflections.rb +0 -16
- data/config/initializers/mime_types.rb +0 -4
- data/config/initializers/wrap_parameters.rb +0 -14
- data/config/locales/en.yml +0 -33
- data/config/puma.rb +0 -37
- data/config/routes.rb +0 -3
- data/config/spring.rb +0 -6
- data/config/storage.yml +0 -34
- data/db/migrate/20210309231658_install_blazer.rb +0 -47
- data/db/migrate/20210309231908_create_users.rb +0 -13
- data/db/schema.rb +0 -85
- data/db/seeds.rb +0 -45
- data/docker-compose.yml +0 -22
- data/lib/assets/.keep +0 -0
- data/lib/tasks/.keep +0 -0
- data/log/.keep +0 -0
- data/package.json +0 -5
- data/public/404.html +0 -67
- data/public/422.html +0 -67
- data/public/500.html +0 -66
- data/public/apple-touch-icon-precomposed.png +0 -0
- data/public/apple-touch-icon.png +0 -0
- data/public/favicon.ico +0 -0
- data/public/robots.txt +0 -1
- data/tmp/.keep +0 -0
- data/vendor/.keep +0 -0
data/bin/rails
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
begin
|
3
|
-
load File.expand_path('../spring', __FILE__)
|
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'
|
data/bin/rake
DELETED
data/bin/setup
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'fileutils'
|
3
|
-
include FileUtils
|
4
|
-
|
5
|
-
# path to your application root.
|
6
|
-
APP_ROOT = File.expand_path('..', __dir__)
|
7
|
-
|
8
|
-
def system!(*args)
|
9
|
-
system(*args) || abort("\n== Command #{args} failed ==")
|
10
|
-
end
|
11
|
-
|
12
|
-
chdir APP_ROOT do
|
13
|
-
# This script is a starting point to setup your application.
|
14
|
-
# Add necessary setup steps to this file.
|
15
|
-
|
16
|
-
puts '== Installing dependencies =='
|
17
|
-
system! 'gem install bundler --conservative'
|
18
|
-
system('bundle check') || system!('bundle install')
|
19
|
-
|
20
|
-
# Install JavaScript dependencies if using Yarn
|
21
|
-
# system('bin/yarn')
|
22
|
-
|
23
|
-
# puts "\n== Copying sample files =="
|
24
|
-
# unless File.exist?('config/database.yml')
|
25
|
-
# cp 'config/database.yml.sample', 'config/database.yml'
|
26
|
-
# end
|
27
|
-
|
28
|
-
puts "\n== Preparing database =="
|
29
|
-
system! 'bin/rails db:setup'
|
30
|
-
|
31
|
-
puts "\n== Removing old logs and tempfiles =="
|
32
|
-
system! 'bin/rails log:clear tmp:clear'
|
33
|
-
|
34
|
-
puts "\n== Restarting application server =="
|
35
|
-
system! 'bin/rails restart'
|
36
|
-
end
|
data/bin/spring
DELETED
@@ -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
|
data/bin/update
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'fileutils'
|
3
|
-
include FileUtils
|
4
|
-
|
5
|
-
# path to your application root.
|
6
|
-
APP_ROOT = File.expand_path('..', __dir__)
|
7
|
-
|
8
|
-
def system!(*args)
|
9
|
-
system(*args) || abort("\n== Command #{args} failed ==")
|
10
|
-
end
|
11
|
-
|
12
|
-
chdir APP_ROOT do
|
13
|
-
# This script is a way to update your development environment automatically.
|
14
|
-
# Add necessary update steps to this file.
|
15
|
-
|
16
|
-
puts '== Installing dependencies =='
|
17
|
-
system! 'gem install bundler --conservative'
|
18
|
-
system('bundle check') || system!('bundle install')
|
19
|
-
|
20
|
-
# Install JavaScript dependencies if using Yarn
|
21
|
-
# system('bin/yarn')
|
22
|
-
|
23
|
-
puts "\n== Updating database =="
|
24
|
-
system! 'bin/rails db:migrate'
|
25
|
-
|
26
|
-
puts "\n== Removing old logs and tempfiles =="
|
27
|
-
system! 'bin/rails log:clear tmp:clear'
|
28
|
-
|
29
|
-
puts "\n== Restarting application server =="
|
30
|
-
system! 'bin/rails restart'
|
31
|
-
end
|
data/bin/yarn
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path('..', __dir__)
|
3
|
-
Dir.chdir(APP_ROOT) do
|
4
|
-
begin
|
5
|
-
exec "yarnpkg", *ARGV
|
6
|
-
rescue Errno::ENOENT
|
7
|
-
$stderr.puts "Yarn executable was not detected in the system."
|
8
|
-
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
|
9
|
-
exit 1
|
10
|
-
end
|
11
|
-
end
|
data/bnb_blazer.gemspec
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
require_relative 'lib/bnb_blazer/version'
|
2
|
-
|
3
|
-
Gem::Specification.new do |spec|
|
4
|
-
spec.name = "bnb_blazer"
|
5
|
-
spec.version = BnbBlazer::VERSION
|
6
|
-
spec.authors = ["Joe"]
|
7
|
-
spec.email = ["pickertjoe@gmail.com"]
|
8
|
-
|
9
|
-
spec.summary = "Customized branding of the Blazer gem for BNB projects"
|
10
|
-
spec.description = "Customized branding of the Blazer gem for BNB projects"
|
11
|
-
spec.homepage = "https://github.com/brandnewbox/bnb_blazer"
|
12
|
-
spec.license = "MIT"
|
13
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
14
|
-
|
15
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
16
|
-
spec.metadata["source_code_uri"] = "https://github.com/brandnewbox/bnb_blazer"
|
17
|
-
|
18
|
-
spec.add_dependency "blazer", "~> 2.4"
|
19
|
-
|
20
|
-
# Specify which files should be added to the gem when it is released.
|
21
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
22
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
23
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
|
-
end
|
25
|
-
spec.bindir = "exe"
|
26
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
|
-
spec.require_paths = ["lib"]
|
28
|
-
end
|
data/config.ru
DELETED
data/config/application.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
require_relative 'boot'
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
# Require the gems listed in Gemfile, including any gems
|
6
|
-
# you've limited to :test, :development, or :production.
|
7
|
-
Bundler.require(*Rails.groups)
|
8
|
-
|
9
|
-
module BnbBlazer
|
10
|
-
class Application < Rails::Application
|
11
|
-
# Initialize configuration defaults for originally generated Rails version.
|
12
|
-
config.load_defaults 5.2
|
13
|
-
|
14
|
-
# Settings in config/environments/* take precedence over those specified here.
|
15
|
-
# Application configuration can go into files in config/initializers
|
16
|
-
# -- all .rb files in that directory are automatically loaded after loading
|
17
|
-
# the framework and any gems in your application.
|
18
|
-
end
|
19
|
-
end
|
data/config/blazer.yml
DELETED
@@ -1,79 +0,0 @@
|
|
1
|
-
# see https://github.com/ankane/blazer for more info
|
2
|
-
|
3
|
-
data_sources:
|
4
|
-
main:
|
5
|
-
url: <%= ENV["BLAZER_DATABASE_URL"] %>
|
6
|
-
|
7
|
-
# statement timeout, in seconds
|
8
|
-
# none by default
|
9
|
-
# timeout: 15
|
10
|
-
|
11
|
-
# caching settings
|
12
|
-
# can greatly improve speed
|
13
|
-
# off by default
|
14
|
-
# cache:
|
15
|
-
# mode: slow # or all
|
16
|
-
# expires_in: 60 # min
|
17
|
-
# slow_threshold: 15 # sec, only used in slow mode
|
18
|
-
|
19
|
-
# wrap queries in a transaction for safety
|
20
|
-
# not necessary if you use a read-only user
|
21
|
-
# true by default
|
22
|
-
# use_transaction: false
|
23
|
-
|
24
|
-
smart_variables:
|
25
|
-
# zone_id: "SELECT id, name FROM zones ORDER BY name ASC"
|
26
|
-
# period: ["day", "week", "month"]
|
27
|
-
# status: {0: "Active", 1: "Archived"}
|
28
|
-
|
29
|
-
linked_columns:
|
30
|
-
# user_id: "/admin/users/{value}"
|
31
|
-
|
32
|
-
smart_columns:
|
33
|
-
# user_id: "SELECT id, name FROM users WHERE id IN {value}"
|
34
|
-
|
35
|
-
# create audits
|
36
|
-
audit: true
|
37
|
-
|
38
|
-
# change the time zone
|
39
|
-
# time_zone: "Pacific Time (US & Canada)"
|
40
|
-
|
41
|
-
# class name of the user model
|
42
|
-
# user_class: User
|
43
|
-
|
44
|
-
# method name for the current user
|
45
|
-
# user_method: current_user
|
46
|
-
|
47
|
-
# method name for the display name
|
48
|
-
# user_name: name
|
49
|
-
|
50
|
-
# custom before_action to use for auth
|
51
|
-
# before_action_method: require_admin
|
52
|
-
|
53
|
-
# email to send checks from
|
54
|
-
# from_email: blazer@example.org
|
55
|
-
|
56
|
-
# webhook for Slack
|
57
|
-
# slack_webhook_url: <%= ENV["BLAZER_SLACK_WEBHOOK_URL"] %>
|
58
|
-
|
59
|
-
check_schedules:
|
60
|
-
- "1 day"
|
61
|
-
- "1 hour"
|
62
|
-
- "5 minutes"
|
63
|
-
|
64
|
-
# enable anomaly detection
|
65
|
-
# note: with trend, time series are sent to https://trendapi.org
|
66
|
-
# anomaly_checks: trend / r
|
67
|
-
|
68
|
-
# enable forecasting
|
69
|
-
# note: with trend, time series are sent to https://trendapi.org
|
70
|
-
# forecasting: trend / prophet
|
71
|
-
|
72
|
-
# enable map
|
73
|
-
# mapbox_access_token: <%= ENV["MAPBOX_ACCESS_TOKEN"] %>
|
74
|
-
|
75
|
-
# enable uploads
|
76
|
-
# uploads:
|
77
|
-
# url: <%= ENV["BLAZER_UPLOADS_URL"] %>
|
78
|
-
# schema: uploads
|
79
|
-
# data_source: main
|
data/config/boot.rb
DELETED
data/config/cable.yml
DELETED
data/config/credentials.yml.enc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ra2o7cXDbj47EzeLR0L9mMw4Ufh4P0TNYPV6sVapflfdG7LKi0NfgXYO6ibGw1uj3NK7YW3bUzSXSF/Ic5Lbcp3USlvBBDZDOlYX54K3Us1jIueNzL+xpFx5vghr0XY7oh9JQEAu4DEdYMI54XwZJq0kZwOCSgZEeK8NWI4iap8My9iDT5AXy7CN4Sd8aA+cvWiCaNNJ0lCrBbn5RXYL0aCSVn/KVhRl3X5X/TO9IywMbIqdAmaY3isNAbw5SVScmMfYfhqazbQ+afFCrZ6w8mfGTvYJHyKLDLfKf1YAuJUZHRqylSphRWK3N6FyxahDnr4v5HNCr/C0CTIo5GBCDHQneYOHMAVxyikTwNWmVLp0R8PEzgp4Lrs/sCE85hQ90RL86geEg4bttHld7j1pRZvfGWIsQnYKrPCc--lgUHcVJTdYiLftQd--pB/oDByF7wTRR6Zn1wKDzw==
|
data/config/database.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
default: &default
|
2
|
-
adapter: postgresql
|
3
|
-
encoding: unicode
|
4
|
-
pool: 5
|
5
|
-
|
6
|
-
development:
|
7
|
-
<<: *default
|
8
|
-
database: bnb_blazer_development
|
9
|
-
|
10
|
-
# Warning: The database defined as "test" will be erased and
|
11
|
-
# re-generated from your development database when you run "rake".
|
12
|
-
# Do not set this db to the same as development or production.
|
13
|
-
test:
|
14
|
-
<<: *default
|
15
|
-
database: bnb_blazer_test
|
16
|
-
|
17
|
-
production:
|
18
|
-
<<: *default
|
19
|
-
database: bnb_blazer
|
data/config/environment.rb
DELETED
@@ -1,61 +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
|
-
# Run rails dev:cache to toggle caching.
|
17
|
-
if Rails.root.join('tmp', 'caching-dev.txt').exist?
|
18
|
-
config.action_controller.perform_caching = true
|
19
|
-
|
20
|
-
config.cache_store = :memory_store
|
21
|
-
config.public_file_server.headers = {
|
22
|
-
'Cache-Control' => "public, max-age=#{2.days.to_i}"
|
23
|
-
}
|
24
|
-
else
|
25
|
-
config.action_controller.perform_caching = false
|
26
|
-
|
27
|
-
config.cache_store = :null_store
|
28
|
-
end
|
29
|
-
|
30
|
-
# Store uploaded files on the local file system (see config/storage.yml for options)
|
31
|
-
config.active_storage.service = :local
|
32
|
-
|
33
|
-
# Don't care if the mailer can't send.
|
34
|
-
config.action_mailer.raise_delivery_errors = false
|
35
|
-
|
36
|
-
config.action_mailer.perform_caching = false
|
37
|
-
|
38
|
-
# Print deprecation notices to the Rails logger.
|
39
|
-
config.active_support.deprecation = :log
|
40
|
-
|
41
|
-
# Raise an error on page load if there are pending migrations.
|
42
|
-
config.active_record.migration_error = :page_load
|
43
|
-
|
44
|
-
# Highlight code that triggered database queries in logs.
|
45
|
-
config.active_record.verbose_query_logs = true
|
46
|
-
|
47
|
-
# Debug mode disables concatenation and preprocessing of assets.
|
48
|
-
# This option may cause significant delays in view rendering with a large
|
49
|
-
# number of complex assets.
|
50
|
-
config.assets.debug = true
|
51
|
-
|
52
|
-
# Suppress logger output for asset requests.
|
53
|
-
config.assets.quiet = true
|
54
|
-
|
55
|
-
# Raises error for missing translations
|
56
|
-
# config.action_view.raise_on_missing_translations = true
|
57
|
-
|
58
|
-
# Use an evented file watcher to asynchronously detect changes in source code,
|
59
|
-
# routes, locales, etc. This feature depends on the listen gem.
|
60
|
-
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
61
|
-
end
|
@@ -1,94 +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
|
-
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
|
18
|
-
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
|
19
|
-
# config.require_master_key = true
|
20
|
-
|
21
|
-
# Disable serving static files from the `/public` folder by default since
|
22
|
-
# Apache or NGINX already handles this.
|
23
|
-
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
24
|
-
|
25
|
-
# Compress JavaScripts and CSS.
|
26
|
-
config.assets.js_compressor = :uglifier
|
27
|
-
# config.assets.css_compressor = :sass
|
28
|
-
|
29
|
-
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
30
|
-
config.assets.compile = false
|
31
|
-
|
32
|
-
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
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
|
-
# Specifies the header that your server uses for sending files.
|
38
|
-
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
39
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
40
|
-
|
41
|
-
# Store uploaded files on the local file system (see config/storage.yml for options)
|
42
|
-
config.active_storage.service = :local
|
43
|
-
|
44
|
-
# Mount Action Cable outside main process or domain
|
45
|
-
# config.action_cable.mount_path = nil
|
46
|
-
# config.action_cable.url = 'wss://example.com/cable'
|
47
|
-
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
|
48
|
-
|
49
|
-
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
50
|
-
# config.force_ssl = true
|
51
|
-
|
52
|
-
# Use the lowest log level to ensure availability of diagnostic information
|
53
|
-
# when problems arise.
|
54
|
-
config.log_level = :debug
|
55
|
-
|
56
|
-
# Prepend all log lines with the following tags.
|
57
|
-
config.log_tags = [ :request_id ]
|
58
|
-
|
59
|
-
# Use a different cache store in production.
|
60
|
-
# config.cache_store = :mem_cache_store
|
61
|
-
|
62
|
-
# Use a real queuing backend for Active Job (and separate queues per environment)
|
63
|
-
# config.active_job.queue_adapter = :resque
|
64
|
-
# config.active_job.queue_name_prefix = "bnb_blazer_#{Rails.env}"
|
65
|
-
|
66
|
-
config.action_mailer.perform_caching = false
|
67
|
-
|
68
|
-
# Ignore bad email addresses and do not raise email delivery errors.
|
69
|
-
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
70
|
-
# config.action_mailer.raise_delivery_errors = false
|
71
|
-
|
72
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
73
|
-
# the I18n.default_locale when a translation cannot be found).
|
74
|
-
config.i18n.fallbacks = true
|
75
|
-
|
76
|
-
# Send deprecation notices to registered listeners.
|
77
|
-
config.active_support.deprecation = :notify
|
78
|
-
|
79
|
-
# Use default logging formatter so that PID and timestamp are not suppressed.
|
80
|
-
config.log_formatter = ::Logger::Formatter.new
|
81
|
-
|
82
|
-
# Use a different logger for distributed setups.
|
83
|
-
# require 'syslog/logger'
|
84
|
-
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
|
85
|
-
|
86
|
-
if ENV["RAILS_LOG_TO_STDOUT"].present?
|
87
|
-
logger = ActiveSupport::Logger.new(STDOUT)
|
88
|
-
logger.formatter = config.log_formatter
|
89
|
-
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
90
|
-
end
|
91
|
-
|
92
|
-
# Do not dump schema after migrations.
|
93
|
-
config.active_record.dump_schema_after_migration = false
|
94
|
-
end
|