Hi Everyone, I'm trying to use Compass and Nesta together—I know this has been asked before, but I'm new to this and I've found the solutions a little vague. I'm wondering if anyone can, fairly explicitly, step by step, explain how to get Compass and Nesta up and running together. Thank you very much, Casey
Hi, Casey, Here's what I use for Rack apps (like Nesta) that lets me do `compass watch` workflow or have Nesta recompile my stylesheets in development mode when I browse: https://gist.github.com/1831561 Ping me if you have any questions, --- Wynn Netherland web: http://wynn.fm twitter / skype / facebook: pengwynn linkedin: http://linkedin.com/in/netherland On Tuesday, February 14, 2012 at 5:13 PM, Casey Olson wrote: > Hi Everyone, > > I'm trying to use Compass and Nesta together—I know this has been asked before, but I'm new to this and I've found the solutions a little vague. > > I'm wondering if anyone can, fairly explicitly, step by step, explain how to get Compass and Nesta up and running together. > > Thank you very much, > > Casey
Wynn, Thanks for the help. I'm getting this error: LoadError: no such file to load -- compass (Here is the full error, if that would be useful: http://pastebin.com/yMLuGCxm ) Would you be able to provide a list of the basic steps required to set up a new Nesta site with Compass? Currently I'm trying this: $ nesta new mysite.com $ cd mysite.com $ bundle $ shotgun config.ru Within the generated folder, I recreated the file structure I saw outlined in your config.rb file by hand to the best of my ability. I added (your) config.rb to the site root and likewise added the code from config.ru to mine. I ran $ compass watch on the equivalent of my themes/wynn directory. I really appreciate the help! Thanks, Casey On Feb 14, 2012, at 6:22 PM, Wynn Netherland wrote: > Hi, Casey, > > Here's what I use for Rack apps (like Nesta) that lets me do `compass watch` workflow or have Nesta recompile my stylesheets in development mode when I browse: > > https://gist.github.com/1831561 > > Ping me if you have any questions, > > --- > Wynn Netherland > web: http://wynn.fm > twitter / skype / facebook: pengwynn > linkedin: http://linkedin.com/in/netherland > > > > On Tuesday, February 14, 2012 at 5:13 PM, Casey Olson wrote: > >> Hi Everyone, >> >> I'm trying to use Compass and Nesta together—I know this has been asked before, but I'm new to this and I've found the solutions a little vague. >> >> I'm wondering if anyone can, fairly explicitly, step by step, explain how to get Compass and Nesta up and running together. >> >> Thank you very much, >> >> Casey > >
On 15 Feb 2012, at 05:15, Casey Olson wrote: > Thanks for the help. I'm getting this error: > LoadError: no such file to load -- compass It looks to me as though you'll need to add the compass gem to your bundle. Add this line to your Gemfile: gem 'compass' Then run bundle again, and you should find that compass will load okay. Bundler is used to define your project's dependencies, and the list of bundled gems is automatically loaded for you when you run "shotgun config.ru". http://gembundler.com/ -- Graham Ashton Founder, The Agile Planner http://theagileplanner.com | @agileplanner | @grahamashton
Thanks Graham, Now I'm getting this error: NameError: undefined local variable or method `root' for #<Rack::Builder:0x10988f7c0 @run=nil, @map=nil, @use=[]> Sorry I'm being such a pain. Thanks for the help! —Casey On Feb 15, 2012, at 6:06 AM, Graham Ashton wrote: > On 15 Feb 2012, at 05:15, Casey Olson wrote: > >> Thanks for the help. I'm getting this error: >> LoadError: no such file to load -- compass > > It looks to me as though you'll need to add the compass gem to your bundle. > Add this line to your Gemfile: > > gem 'compass' > > Then run bundle again, and you should find that compass will load okay. > > Bundler is used to define your project's dependencies, and the list of bundled gems is automatically loaded for you when you run "shotgun config.ru". > > http://gembundler.com/ > > -- > Graham Ashton > Founder, The Agile Planner > http://theagileplanner.com | @agileplanner | @grahamashton
Sorry, missed a line in the config.ru. I've updated the gist from the top. On Wednesday, February 15, 2012 at 10:57 AM, Casey Olson wrote: > Thanks Graham, > > Now I'm getting this error: > > NameError: undefined local variable or method `root' for #<Rack::Builder:0x10988f7c0 @run=nil, @map=nil, @use=[]> > > Sorry I'm being such a pain. Thanks for the help! > > —Casey > > On Feb 15, 2012, at 6:06 AM, Graham Ashton wrote: > > On 15 Feb 2012, at 05:15, Casey Olson wrote: > > > > > Thanks for the help. I'm getting this error: > > > LoadError: no such file to load -- compass > > > > > > It looks to me as though you'll need to add the compass gem to your bundle. > > Add this line to your Gemfile: > > > > gem 'compass' > > > > Then run bundle again, and you should find that compass will load okay. > > > > Bundler is used to define your project's dependencies, and the list of bundled gems is automatically loaded for you when you run "shotgun config.ru (http://config.ru)". > > > > http://gembundler.com/ > > > > -- > > Graham Ashton > > Founder, The Agile Planner > > http://theagileplanner.com | @agileplanner | @grahamashton >
Thanks Wynn! I'm really close! I have Compass exporting correctly to /themes/mysite/public/mysite/css , but these files aren't being used by my site. I think it's because my app.rb isn't configured correctly. I've been fiddling with it, but can't seem to get it to work. Thank you! –Casey On Feb 15, 2012, at 3:15 PM, Wynn Netherland wrote: > Sorry, missed a line in the config.ru. I've updated the gist from the top. > > > > On Wednesday, February 15, 2012 at 10:57 AM, Casey Olson wrote: > >> Thanks Graham, >> >> Now I'm getting this error: >> >> NameError: undefined local variable or method `root' for #<Rack::Builder:0x10988f7c0 @run=nil, @map=nil, @use=[]> >> >> Sorry I'm being such a pain. Thanks for the help! >> >> —Casey >> >> On Feb 15, 2012, at 6:06 AM, Graham Ashton wrote: >>> On 15 Feb 2012, at 05:15, Casey Olson wrote: >>> >>>> Thanks for the help. I'm getting this error: >>>> LoadError: no such file to load -- compass >>> >>> >>> It looks to me as though you'll need to add the compass gem to your bundle. >>> Add this line to your Gemfile: >>> >>> gem 'compass' >>> >>> Then run bundle again, and you should find that compass will load okay. >>> >>> Bundler is used to define your project's dependencies, and the list of bundled gems is automatically loaded for you when you run "shotgun config.ru (http://config.ru)". >>> >>> http://gembundler.com/ >>> >>> -- >>> Graham Ashton >>> Founder, The Agile Planner >>> http://theagileplanner.com | @agileplanner | @grahamashton >> > > >
Well, I solved my own silly problem. I'll send it out here in case anyone else is having a similar issue. I needed to reflect the change in the location of the css in the haml document. Thanks for your help everyone! —Casey On Feb 15, 2012, at 4:02 PM, Casey Olson wrote: > Thanks Wynn! > > I'm really close! I have Compass exporting correctly to /themes/mysite/public/mysite/css , but these files aren't being used by my site. I think it's because my app.rb isn't configured correctly. I've been fiddling with it, but can't seem to get it to work. > > Thank you! > > –Casey > > > On Feb 15, 2012, at 3:15 PM, Wynn Netherland wrote: > >> Sorry, missed a line in the config.ru. I've updated the gist from the top. >> >> >> >> On Wednesday, February 15, 2012 at 10:57 AM, Casey Olson wrote: >> >>> Thanks Graham, >>> >>> Now I'm getting this error: >>> >>> NameError: undefined local variable or method `root' for #<Rack::Builder:0x10988f7c0 @run=nil, @map=nil, @use=[]> >>> >>> Sorry I'm being such a pain. Thanks for the help! >>> >>> —Casey >>> >>> On Feb 15, 2012, at 6:06 AM, Graham Ashton wrote: >>>> On 15 Feb 2012, at 05:15, Casey Olson wrote: >>>> >>>>> Thanks for the help. I'm getting this error: >>>>> LoadError: no such file to load -- compass >>>> >>>> >>>> It looks to me as though you'll need to add the compass gem to your bundle. >>>> Add this line to your Gemfile: >>>> >>>> gem 'compass' >>>> >>>> Then run bundle again, and you should find that compass will load okay. >>>> >>>> Bundler is used to define your project's dependencies, and the list of bundled gems is automatically loaded for you when you run "shotgun config.ru (http://config.ru)". >>>> >>>> http://gembundler.com/ >>>> >>>> -- >>>> Graham Ashton >>>> Founder, The Agile Planner >>>> http://theagileplanner.com | @agileplanner | @grahamashton >>> >> >> >> >
Glad you figured it out. Sorry to be so latent, I'm on a conference trip. Thanks for following through to let others know the fix. On Wednesday, February 15, 2012 at 8:54 PM, Casey Olson wrote: > Well, I solved my own silly problem. I'll send it out here in case anyone else is having a similar issue. > > I needed to reflect the change in the location of the css in the haml document. > > Thanks for your help everyone! > > —Casey > > > On Feb 15, 2012, at 4:02 PM, Casey Olson wrote: > > > Thanks Wynn! > > > > I'm really close! I have Compass exporting correctly to /themes/mysite/public/mysite/css , but these files aren't being used by my site. I think it's because my app.rb isn't configured correctly. I've been fiddling with it, but can't seem to get it to work. > > > > Thank you! > > > > –Casey > > > > > > On Feb 15, 2012, at 3:15 PM, Wynn Netherland wrote: > > > > > Sorry, missed a line in the config.ru (http://config.ru). I've updated the gist from the top. > > > > > > > > > > > > On Wednesday, February 15, 2012 at 10:57 AM, Casey Olson wrote: > > > > > > > Thanks Graham, > > > > > > > > Now I'm getting this error: > > > > > > > > NameError: undefined local variable or method `root' for #<Rack::Builder:0x10988f7c0 @run=nil, @map=nil, @use=[]> > > > > > > > > Sorry I'm being such a pain. Thanks for the help! > > > > > > > > —Casey > > > > > > > > On Feb 15, 2012, at 6:06 AM, Graham Ashton wrote: > > > > > On 15 Feb 2012, at 05:15, Casey Olson wrote: > > > > > > > > > > > Thanks for the help. I'm getting this error: > > > > > > LoadError: no such file to load -- compass > > > > > > > > > > > > > > > > > > > > > > > > > It looks to me as though you'll need to add the compass gem to your bundle. > > > > > Add this line to your Gemfile: > > > > > > > > > > gem 'compass' > > > > > > > > > > Then run bundle again, and you should find that compass will load okay. > > > > > > > > > > Bundler is used to define your project's dependencies, and the list of bundled gems is automatically loaded for you when you run "shotgun config.ru (http://config.ru)". > > > > > > > > > > http://gembundler.com/ > > > > > > > > > > -- > > > > > Graham Ashton > > > > > Founder, The Agile Planner > > > > > http://theagileplanner.com | @agileplanner | @grahamashton > > > > > > > > > >