annotate config/application.rb @ 147:2b081cc7f383

Try using earlier redis
author nanaya <me@nanaya.pro>
date Thu, 14 Dec 2017 15:05:24 +0900
parents f76d44baa3dc
children c57e51af4692
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 47
diff changeset
1 require_relative "boot"
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
2
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
3 # Pick the frameworks you want:
33
9defe1ae5814 Remove ActiveModel dependency.
edogawaconan <me@myconan.net>
parents: 28
diff changeset
4 # require "active_model/railtie"
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
5 # require "active_record/railtie"
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
6 require "action_controller/railtie"
1
dac0d7297388 Remove ActionMailer.
edogawaconan <me@myconan.net>
parents: 0
diff changeset
7 # require "action_mailer/railtie"
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
8 require "action_view/railtie"
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
9 # require "sprockets/railtie"
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
10 require "rails/test_unit/railtie"
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
11
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 47
diff changeset
12 require_relative "config_init"
47
e5082c4c234d Also allow config-file-based configuration.
nanaya <me@myconan.net>
parents: 39
diff changeset
13
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
14 # Require the gems listed in Gemfile, including any gems
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
15 # you've limited to :test, :development, or :production.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
16 Bundler.require(*Rails.groups)
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
17
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
18 module Rsstweet
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
19 class Application < Rails::Application
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
20 # Settings in config/environments/* take precedence over those specified here.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
21 # Application configuration should go into files in config/initializers
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
22 # -- all .rb files in that directory are automatically loaded.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
23
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 47
diff changeset
24 config.middleware.delete ActionDispatch::Cookies
28
03f904c070f7 Basic caching support.
edogawaconan <me@myconan.net>
parents: 19
diff changeset
25
36
1fdb3fc5ec31 Move setting of secret_key_base to application.rb.
edogawaconan <me@myconan.net>
parents: 33
diff changeset
26 # this isn't actually used but railties checks this variable during boot.
1fdb3fc5ec31 Move setting of secret_key_base to application.rb.
edogawaconan <me@myconan.net>
parents: 33
diff changeset
27 config.secret_key_base = "herp a derp"
39
aa6d58c8653b Remove all initializers.
edogawaconan <me@myconan.net>
parents: 36
diff changeset
28 config.session_store :disabled
36
1fdb3fc5ec31 Move setting of secret_key_base to application.rb.
edogawaconan <me@myconan.net>
parents: 33
diff changeset
29
110
f76d44baa3dc Test adding redis support
nanaya <me@myconan.net>
parents: 89
diff changeset
30 if $cfg[:redis_server]
f76d44baa3dc Test adding redis support
nanaya <me@myconan.net>
parents: 89
diff changeset
31 config.cache_store = :redis_store, "#{$cfg[:redis_server]}/cache_store", { :expires_in => 12.hours }
28
03f904c070f7 Basic caching support.
edogawaconan <me@myconan.net>
parents: 19
diff changeset
32 end
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
33 end
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
34 end