critical-path-css-rails
critical-path-css-rails copied to clipboard
Deployment with capistrano - Rake Task fails
I am trying to deploy using the asset pipeline. I am receiving the following message:
Tasks: TOP => deploy:assets:precompile (See full trace by running task with --trace) The deploy has failed with an error: Exception while executing as xxxx : rake exit status: 1 rake aborted! NoMethodError: undefined method
[]' for nil:NilClass [...]/shared/bundle/ruby/2.6.0/gems/critical-path-css-rails-4.0.1/lib/critical_path_css/rails/config_loader.rb:36:invalidate_css_paths' [...]/shared/bundle/ruby/2.6.0/gems/critical-path-css-rails-4.0.1/lib/critical_path_css/rails/config_loader.rb:7:ininitialize' [...]/shared/bundle/ruby/2.6.0/gems/critical-path-css-rails-4.0.1/lib/critical-path-css-rails.rb:35:innew' [...]/shared/bundle/ruby/2.6.0/gems/critical-path-css-rails-4.0.1/lib/critical-path-css-rails.rb:35:inconfig_loader' [...]/shared/bundle/ruby/2.6.0/gems/critical-path-css-rails-4.0.1/lib/critical-path-css-rails.rb:31:infetcher' [...]/shared/bundle/ruby/2.6.0/gems/critical-path-css-rails-4.0.1/lib/critical-path-css-rails.rb:13:ingenerate_all' [...]/releases/20190823144812/lib/tasks/critical_path_css.rake:6:inblock (2 levels) in <top (required)>' [...]/releases/20190823144812/lib/tasks/critical_path_css.rake:18:inblock in <top (required)>' [...]/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in<top (required)>' [...]shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:ineval' [...]/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in'
What am I doing wrong? Iam using ruby 2.6.3 and rails 5.2.3
@ck2000 I'm pretty sure we don't have a test case for manifest_name, which is what you are using. I think the OP fixed this in his fork, but I'll need to write a test for this, duplicate the error, and then push the fix.
Okay, please let me know if I can give you a helping hand. Having this fixed in the master branch makes sense.