FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
documentcloud/config/application.rb at gm_processing · documentcloud/documentcloud · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Mar 11, 2021. It is now read-only.
documentcloud
/
documentcloud
Public archive
Notifications
You must be signed in to change notification settings
Fork
157
Star
425
Code
Issues
194
Pull requests
16
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
documentcloud
/
config
/
application.rb
Copy path
More file actions
More file actions
Latest commit
History
History
History
43 lines (31 loc) · 1.88 KB
Breadcrumbs
documentcloud
/
config
/
application.rb
Copy path
File metadata and controls
43 lines (31 loc) · 1.88 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
require
File
.
expand_path
(
'../boot'
,
__FILE__
)
require
'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler
.
require
(
:default
,
Rails
.
env
)
module
DC
SECRETS
=
{
}
CONFIG
=
{
}
class
Application
<
Rails
::
Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
config
.
i18n
.
enforce_available_locales
=
false
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
config
.
time_zone
=
'UTC'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
# Use SQL instead of Active Record's schema dumper when creating the test database.
# config.active_record.schema_format = :sql
config
.
action_controller
.
page_cache_directory
=
"
#{
Rails
.
root
.
to_s
}
/public"
config
.
cache_store
=
:file_store
,
"
#{
Rails
.
root
}
/tmp/cache"
,
{
expires_in
:
10
.
minutes
,
:race_condition_ttl
=>
120
}
# DocumentCloud-specific configuration.
::
DC
::
SECRETS
.
merge!
YAML
.
load_file
(
"
#{
Rails
.
root
}
/secrets/secrets.yml"
)
[
Rails
.
env
]
::
DC
::
CONFIG
.
merge!
YAML
.
load
(
ERB
.
new
(
File
.
read
(
Rails
.
root
.
join
(
'config'
,
'document_cloud.yml'
)
)
)
.
result
)
[
Rails
.
env
]
::
DC
::
ANALYTICS_DB
=
YAML
.
load
(
ERB
.
new
(
File
.
read
(
"
#{
Rails
.
root
}
/config/database_analytics.yml"
)
)
.
result
(
binding
)
)
[
Rails
.
env
]
::
DC
::
MAIN_DB
=
YAML
.
load
(
ERB
.
new
(
File
.
read
(
"
#{
Rails
.
root
}
/config/database.yml"
)
)
.
result
(
binding
)
)
[
Rails
.
env
]
config
.
filter_parameters
+=
[
:password
]
end
end
Back
|
FazBrowse Home
|
New Git URL