File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
require "fileutils"
2
2
3
3
namespace :assets do
4
- def ruby_rake_task ( task )
4
+ def ruby_rake_task ( task , fork = true )
5
5
env = ENV [ 'RAILS_ENV' ] || 'production'
6
6
groups = ENV [ 'RAILS_GROUPS' ] || 'assets'
7
7
args = [ $0, task , "RAILS_ENV=#{ env } " , "RAILS_GROUPS=#{ groups } " ]
8
8
args << "--trace" if Rake . application . options . trace
9
- ruby ( *args )
9
+ fork ? ruby ( * args ) : Kernel . exec ( FileUtils :: RUBY , *args )
10
10
end
11
11
12
12
# We are currently running with no explicit bundler group
@@ -59,7 +59,7 @@ namespace :assets do
59
59
# required in order to compile digestless assets as the
60
60
# environment has already cached the assets on the primary
61
61
# run.
62
- ruby_rake_task "assets:precompile:nondigest" if Rails . application . config . assets . digest
62
+ ruby_rake_task ( "assets:precompile:nondigest" , false ) if Rails . application . config . assets . digest
63
63
end
64
64
65
65
task :primary => [ "assets:environment" , "tmp:cache:clear" ] do
You can’t perform that action at this time.
0 commit comments