File tree Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
- require File . expand_path ( ' ../boot' , __FILE__ )
1
+ require File . expand_path ( " ../boot" , __FILE__ )
2
2
3
- require ' rails/all'
3
+ require " rails/all"
4
4
5
5
# Require the gems listed in Gemfile, including any gems
6
6
# you've limited to :test, :development, or :production.
Original file line number Diff line number Diff line change 1
- ENV [ ' BUNDLE_GEMFILE' ] ||= File . expand_path ( ' ../../Gemfile' , __FILE__ )
1
+ ENV [ " BUNDLE_GEMFILE" ] ||= File . expand_path ( " ../../Gemfile" , __FILE__ )
2
2
3
- require ' bundler/setup' # Set up gems listed in the Gemfile.
3
+ require " bundler/setup" # Set up gems listed in the Gemfile.
Original file line number Diff line number Diff line change 1
1
# Load the Rails application.
2
- require File . expand_path ( ' ../application' , __FILE__ )
2
+ require File . expand_path ( " ../application" , __FILE__ )
3
3
4
4
# Initialize the Rails application.
5
5
Rails . application . initialize!
Original file line number Diff line number Diff line change 13
13
config . consider_all_requests_local = true
14
14
15
15
# Enable/disable caching. By default caching is disabled.
16
- if Rails . root . join ( ' tmp/caching-dev.txt' ) . exist?
16
+ if Rails . root . join ( " tmp/caching-dev.txt" ) . exist?
17
17
config . action_controller . perform_caching = true
18
18
19
19
config . action_mailer . perform_caching = false
20
20
21
21
config . cache_store = :memory_store
22
22
config . public_file_server . headers = {
23
- ' Cache-Control' => ' public, max-age=172800'
23
+ " Cache-Control" => " public, max-age=172800"
24
24
}
25
25
else
26
26
config . action_controller . perform_caching = false
Original file line number Diff line number Diff line change 16
16
17
17
# Disable serving static files from the `/public` folder by default since
18
18
# Apache or NGINX already handles this.
19
- config . public_file_server . enabled = ENV [ ' RAILS_SERVE_STATIC_FILES' ] . present?
19
+ config . public_file_server . enabled = ENV [ " RAILS_SERVE_STATIC_FILES" ] . present?
20
20
21
21
# Compress JavaScripts and CSS.
22
22
config . assets . js_compressor = :uglifier
50
50
config . log_level = :debug
51
51
52
52
# Prepend all log lines with the following tags.
53
- config . log_tags = [ :request_id ]
53
+ config . log_tags = [ :request_id ]
54
54
55
55
# Use a different logger for distributed setups.
56
56
# require 'syslog/logger'
Original file line number Diff line number Diff line change 15
15
# Configure public file server for tests with Cache-Control for performance.
16
16
config . public_file_server . enabled = true
17
17
config . public_file_server . headers = {
18
- ' Cache-Control' => ' public, max-age=3600'
18
+ " Cache-Control" => " public, max-age=3600"
19
19
}
20
20
21
21
# Show full error reports and disable caching.
Original file line number Diff line number Diff line change 1
1
# Be sure to restart your server when you modify this file.
2
2
3
3
# Version of your assets, change this if you want to expire all your assets.
4
- Rails . application . config . assets . version = ' 1.0'
4
+ Rails . application . config . assets . version = " 1.0"
5
5
6
6
# Add folder with webpack generated assets to assets.paths
7
7
Rails . application . config . assets . paths << Rails . root . join ( "app" , "assets" , "webpack" )
You can’t perform that action at this time.
0 commit comments