File tree 5 files changed +15
-6
lines changed
5 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
+ begin
3
+ load File . expand_path ( "../spring" , __FILE__ )
4
+ rescue LoadError
5
+ end
2
6
APP_PATH = File . expand_path ( '../../config/application' , __FILE__ )
3
7
require_relative '../config/boot'
4
8
require 'rails/commands'
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
+ begin
3
+ load File . expand_path ( "../spring" , __FILE__ )
4
+ rescue LoadError
5
+ end
2
6
require_relative '../config/boot'
3
7
require 'rake'
4
8
Rake . application . run
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ unless defined?(Spring)
7
7
require "rubygems"
8
8
require "bundler"
9
9
10
- if match = Bundler . default_lockfile . read . match ( /^GEM$.*?^ spring \( (.*?)\) $.*?^$/m )
10
+ if match = Bundler . default_lockfile . read . match ( /^GEM$.*?^ (?: )* spring \( (.*?)\) $.*?^$/m )
11
11
ENV [ "GEM_PATH" ] = ( [ Bundler . bundle_path . to_s ] + Gem . path ) . join ( File ::PATH_SEPARATOR )
12
12
ENV [ "GEM_HOME" ] = ""
13
13
Gem . paths = ENV
Original file line number Diff line number Diff line change 20
20
# NGINX, varnish or squid.
21
21
# config.action_dispatch.rack_cache = true
22
22
23
- # Disable Rails's static asset server (Apache or NGINX will already do this).
24
- config . serve_static_assets = false
23
+ # Disable serving static files from the `/public` folder by default since
24
+ # Apache or NGINX already handles this.
25
+ config . serve_static_files = ENV [ 'RAILS_SERVE_STATIC_FILES' ] . present?
25
26
26
27
# Compress JavaScripts and CSS.
27
28
config . assets . js_compressor = :uglifier
Original file line number Diff line number Diff line change 12
12
# preloads Rails for running tests, you may have to set it to true.
13
13
config . eager_load = false
14
14
15
- # Configure static asset server for tests with Cache-Control for performance.
16
- config . serve_static_assets = true
15
+ # Configure static file server for tests with Cache-Control for performance.
16
+ config . serve_static_files = true
17
17
config . static_cache_control = 'public, max-age=3600'
18
18
19
19
# Show full error reports and disable caching.
32
32
config . action_mailer . delivery_method = :test
33
33
config . action_mailer . default_url_options = { host : 'localhost:3000' }
34
34
35
- # Randomize the order test cases are executed
35
+ # Randomize the order test cases are executed.
36
36
config . active_support . test_order = :random
37
37
38
38
# Print deprecation notices to the stderr.
You can’t perform that action at this time.
0 commit comments