Mercurial > rsstweet
annotate config/application.rb @ 215:1c1f761f2dcc
The parameter is still required in production so it turned out
author | nanaya <me@nanaya.pro> |
---|---|
date | Fri, 11 Dec 2020 03:52:35 +0900 |
parents | 2335107f35d0 |
children | 2a3c7db6007a |
rev | line source |
---|---|
185 | 1 require_relative 'boot' |
0 | 2 |
148 | 3 require "rails" |
0 | 4 # Pick the frameworks you want: |
33
9defe1ae5814
Remove ActiveModel dependency.
edogawaconan <me@myconan.net>
parents:
28
diff
changeset
|
5 # require "active_model/railtie" |
148 | 6 # require "active_job/railtie" |
0 | 7 # require "active_record/railtie" |
148 | 8 # require "active_storage/engine" |
0 | 9 require "action_controller/railtie" |
1 | 10 # require "action_mailer/railtie" |
185 | 11 # require "action_mailbox/engine" |
12 # require "action_text/engine" | |
0 | 13 require "action_view/railtie" |
148 | 14 # require "action_cable/engine" |
0 | 15 # require "sprockets/railtie" |
16 require "rails/test_unit/railtie" | |
17 | |
185 | 18 require_relative 'config_init' |
19 ENV['RAILS_LOG_TO_STDOUT'] = '1' | |
47
e5082c4c234d
Also allow config-file-based configuration.
nanaya <me@myconan.net>
parents:
39
diff
changeset
|
20 |
0 | 21 # Require the gems listed in Gemfile, including any gems |
22 # you've limited to :test, :development, or :production. | |
23 Bundler.require(*Rails.groups) | |
24 | |
25 module Rsstweet | |
26 class Application < Rails::Application | |
214 | 27 # Initialize configuration defaults for originally generated Rails version. |
213 | 28 config.load_defaults 6.1 |
0 | 29 # Settings in config/environments/* take precedence over those specified here. |
185 | 30 # Application configuration can go into files in config/initializers |
31 # -- all .rb files in that directory are automatically loaded after loading | |
32 # the framework and any gems in your application. | |
0 | 33 |
215
1c1f761f2dcc
The parameter is still required in production so it turned out
nanaya <me@nanaya.pro>
parents:
214
diff
changeset
|
34 # this isn't actually used but railties *production* checks this variable during boot. |
1c1f761f2dcc
The parameter is still required in production so it turned out
nanaya <me@nanaya.pro>
parents:
214
diff
changeset
|
35 config.secret_key_base = "herp a derp" |
1c1f761f2dcc
The parameter is still required in production so it turned out
nanaya <me@nanaya.pro>
parents:
214
diff
changeset
|
36 |
185 | 37 config.middleware.delete ActionDispatch::HostAuthorization |
72 | 38 config.middleware.delete ActionDispatch::Cookies |
39 | 39 config.session_store :disabled |
36
1fdb3fc5ec31
Move setting of secret_key_base to application.rb.
edogawaconan <me@myconan.net>
parents:
33
diff
changeset
|
40 |
110 | 41 if $cfg[:redis_server] |
42 config.cache_store = :redis_store, "#{$cfg[:redis_server]}/cache_store", { :expires_in => 12.hours } | |
28 | 43 end |
0 | 44 end |
45 end |