login community faq

I just came across the awesome django-mediagenerator. It needs sass (http://sass-lang.com/) to be installed in order to work properly. I'm a Python user and never touched Ruby, yet. On my development machine I got it flying easily by doing "sudo apt-get install libhaml-ruby1.8".

However I have no clue on how to get sass installed on my webfaction accounts.

Any suggestions?

asked Oct 29 '10 at 00:59

mbrochh's gravatar image

mbrochh
767


Hi,

We have documentation on installing ruby gems here:

http://docs.webfaction.com/software/rails.html?highlight=gems#installing-gems

In this case you wouldn't need to cd into your rails app. :)

answered Oct 29 '10 at 01:09

klynton's gravatar image

klynton ♦♦
148128

Okay so I did the following:

cd ~

mkdir gems

export GEM_HOME=$PWD/gems

export PATH=$PWD/bin:$PATH

gem install haml

This installed a lot of stuff into the new gems folder but still I am not able to run "sass" or "sass-convert" on my shell. I'm pretty sure my django app wouldn't be able to call this command as well...

(Oct 29 '10 at 01:21) mbrochh mbrochh's gravatar image

Ah me stupid. I guess I will just have to add ~/gems/bin to my path in my wsgi start script. Many thanks for your help!

(Oct 29 '10 at 01:24) mbrochh mbrochh's gravatar image
1

I'm glad you got it figured out! I didn't even have time to finish a reply before you had it. :)

(Oct 29 '10 at 01:30) klynton ♦♦ klynton's gravatar image

I've installed haml to the gems directory, but when I try the sass command I get

1
2
from ~/gems/bin/sass:19:in `load'
from ~/gems/bin/sass:19
(Jul 15 '11 at 14:23) ycason3 ycason3's gravatar image

Oh, sass was separated out of haml. Now you have to do a 'gem install sass'

(Jul 15 '11 at 14:35) ycason3 ycason3's gravatar image

Hey mbrochh! How did you add ~/gems/bin to your path in <project>.wsgi? I suppose that its not the python path you are talking about? I want to see some code, please :)

(Jan 28 '12 at 09:28) Akseli Palén Akseli%20Pal%C3%A9n's gravatar image

Hi Akseli, There are various ways to do this, they are all explained in our docs here. If you want to do it by adding to the sys.path, this section is what you're looking for.

(Jan 28 '12 at 09:52) todork todork's gravatar image
showing 5 of 7 show all
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×73
×56
×29
×3

Asked: Oct 29 '10 at 00:59

Seen: 1,742 times

Last updated: Jan 28 '12 at 09:52

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited