librelist archives

« back to archive

Compass and Nesta

Compass and Nesta

From:
Casey Olson
Date:
2012-02-14 @ 23:13
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

Re: [nesta] Compass and Nesta

From:
Wynn Netherland
Date:
2012-02-14 @ 23:22
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  

Re: [nesta] Compass and Nesta

From:
Casey Olson
Date:
2012-02-15 @ 05:15
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  
> 
> 

Re: [nesta] Compass and Nesta

From:
Graham Ashton
Date:
2012-02-15 @ 11:06
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

Re: [nesta] Compass and Nesta

From:
Casey Olson
Date:
2012-02-15 @ 16:57
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

Re: [nesta] Compass and Nesta

From:
Wynn Netherland
Date:
2012-02-15 @ 20:15
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
>  


Re: [nesta] Compass and Nesta

From:
Casey Olson
Date:
2012-02-15 @ 21:02
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
>> 
> 
> 
> 

Re: [nesta] Compass and Nesta

From:
Casey Olson
Date:
2012-02-16 @ 01:54
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
>>> 
>> 
>> 
>> 
> 

Re: [nesta] Compass and Nesta

From:
Wynn Netherland
Date:
2012-02-16 @ 20:59
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
> > > >  
> > >  
> >  
>