starting /website

92 views
Skip to first unread message

Michael McLaughlin

unread,
Mar 27, 2014, 10:04:32 PM3/27/14
to serve...@googlegroups.com
alright, so i decided to start with the website for a variety of reasons, one of which being my job is letting me be on vacation while i'm on vacation... seriously. who does that?

Anyway, I noticed a few things that could be done to improve it include making it responsive and well, yeah, that's the main thing for now.

I started up by reading into compass some more. I am now a convert from bourbon. I just need to figure out how all of the imports work now. I suppose that something like @import "compass"; is just accessing the gem, but I can't be sure. I don't ever see a folder or a partial labeled compass, so this is what i'm assuming.

I actually ran into the documentation for compass because of a question that I was having when trying to serve the serve/website folder so that I could preview what I was working on. I have tried this both with ruby v2.1 and 2.0 but alas to no avail. Whenever I try to install mongrel i get an error that asks for fastthread which I cannot seem to install under any circumstance. It errors out with:

ERROR: Failed to build gem native extension.
    /Users/michaelmclaughlin/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb

extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config.
extconf.rb:13:in `block in <main>': Use RbConfig instead of obsolete and deprecated Config.

make "DESTDIR=" clean
Makefile:108: *** missing separator.  Stop.

make "DESTDIR="
Makefile:108: *** missing separator.  Stop.

make failed, exit code 2

Gem files will remain installed in /Users/michaelmclaughlin/.rvm/gems/ruby-2.1.0/gems/fastthread-1.0.7 for inspection.

Don't know what's going on with that nonsense, but just thought i should let you guys know. 
It's probably my computer for some reason but I just can't say. I updated macports, as well as everything ssl, in accordance with 
But the original question that caused me to question what was going on... was the following:

MAIN QUESTION

I was getting the following line as an error:
"NoMethodError: undefined method `empty?' for nil:NilClass"
just before the html that was rendered on the serve/website/index page. 
Lo and behold, it was held in the body:before element, and it looked like it was caused by the sass not compiling correctly. I have the compass gem installed, and even tried reinstalling everything just in case it was something that i had unknowingly done. But this is how the git repo is currently shipping. Any bright ideas anyone?
It is currently not compiling the css and i am basically looking at next to nothing in when starting localhost:4000
I'm not using live reload at this time, even though that is something I would like to do in the future. (this was one of the things pointed to as the culprit)
And this is once again, happening both with v2 and v2.1

Something that's also really confusing me is that when I first cd into the serve directory that I forked ruby automatically switches to 2.0.0, which i'm pretty sure was deemed unstable. Maybe this is just my computer, or what ruby does automatically, but is this possible to fix?

John W. Long

unread,
Mar 27, 2014, 10:56:55 PM3/27/14
to serve...@googlegroups.com
I think it has something to do with the versions of the gems installed with Serve. I updated the Gemfile.lock for the website which will hopefully fix the problem for you.

Try this:

    cd website
    bundle install
    bundle exec serve

I was able to get it to successfully load after updating the Gemfile.lock. Let me know if you still have issues.

—John

--
--
Serve Users Group
Mailing List: http://groups.google.com/group/serve-users/
Project: http://github.com/jlong/serve/

---
You received this message because you are subscribed to the Google Groups "Serve Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to serve-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael McLaughlin

unread,
Mar 28, 2014, 3:33:22 AM3/28/14
to serve...@googlegroups.com
nope. still getting that error. pulled and fetched, deleted the lock files, ran bundle again. and then got these errors:

DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead. (called from extend at /Users/michaelmclaughlin/.rvm/gems/ruby-2.1.0/gems/serve-1.5.1/lib/serve/rack.rb:64)

DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead. (called from extend at /Users/michaelmclaughlin/.rvm/gems/ruby-2.1.0/gems/serve-1.5.1/lib/serve/rack.rb:64)

along with 

Encoding::UndefinedConversionError at /

"\xE2" from ASCII-8BIT to UTF-8

Ruby/Users/michaelmclaughlin/.rvm/gems/ruby-2.0.0-p0@serve/gems/sass-3.2.18/lib/sass/util.rb: in encode, line 655
WebGET localhost/




that error

Thanks,
Michael


You received this message because you are subscribed to a topic in the Google Groups "Serve Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/serve-users/v6Z2AFwHtAc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to serve-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages