Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment with capistrano - Rake Task fails #49

Open
ck2000 opened this issue Aug 23, 2019 · 2 comments
Open

Deployment with capistrano - Rake Task fails #49

ck2000 opened this issue Aug 23, 2019 · 2 comments

Comments

@ck2000
Copy link

ck2000 commented Aug 23, 2019

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:in validate_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:in initialize' [...]/shared/bundle/ruby/2.6.0/gems/critical-path-css-rails-4.0.1/lib/critical-path-css-rails.rb:35:in new'
[...]/shared/bundle/ruby/2.6.0/gems/critical-path-css-rails-4.0.1/lib/critical-path-css-rails.rb:35:in config_loader' [...]/shared/bundle/ruby/2.6.0/gems/critical-path-css-rails-4.0.1/lib/critical-path-css-rails.rb:31:in fetcher'
[...]/shared/bundle/ruby/2.6.0/gems/critical-path-css-rails-4.0.1/lib/critical-path-css-rails.rb:13:in generate_all' [...]/releases/20190823144812/lib/tasks/critical_path_css.rake:6:in block (2 levels) in <top (required)>'
[...]/releases/20190823144812/lib/tasks/critical_path_css.rake:18:in block 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:in eval' [...]/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

@michael-misshore
Copy link
Contributor

@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.

@ck2000
Copy link
Author

ck2000 commented Aug 23, 2019

Okay, please let me know if I can give you a helping hand. Having this fixed in the master branch makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants