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

How to use the rake.rb file? Should I require it inside my rake file? #9

Open
jfrux opened this issue Mar 26, 2013 · 0 comments
Open

Comments

@jfrux
Copy link

jfrux commented Mar 26, 2013

When I do require 'sinatra/sprockets/rake' in my Rakefile
and then I run $ rake assets:precompile I'm getting an error:

$ rake assets:precompile
rake aborted!
Don't know how to build task 'environment'
/Users/joshua/Projects/alphasights-sinatra-sprockets/lib/sinatra/sprockets/rake.rb:6:in `block (2 levels) in <top (required)>'
/Users/joshua/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `eval'
/Users/joshua/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => assets:clean:all
(See full trace by running task with --trace)

I removed "environment" from the equation and I then get:

rake aborted!
undefined method `settings' for nil:NilClass
/Users/joshua/Projects/alphasights-sinatra-sprockets/lib/sinatra/sprockets/rake.rb:37:in `block (3 levels) in <top (required)>'
/Users/joshua/Projects/alphasights-sinatra-sprockets/lib/sinatra/sprockets/rake.rb:6:in `block (2 levels) in <top (required)>'
/Users/joshua/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `eval'
/Users/joshua/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => assets:clean:all
(See full trace by running task with --trace)

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

1 participant