Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
sass_on_heroku / hassle
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Marcel Overdijk  
View profile   Translate to Translated (View Original)
 More options Mar 26 2010, 9:30 am
From: Marcel Overdijk <marceloverd...@gmail.com>
Date: Fri, 26 Mar 2010 06:30:04 -0700 (PDT)
Local: Fri, Mar 26 2010 9:30 am
Subject: sass_on_heroku / hassle
As I understand sass_on_heroku or better hassle can be used to compile
sass stylesheets to the /tmp folder on Heroku. I'm wondering what the
findings are about using this approach.

I'm asking because of this mention in the Heroku docs. Especially the
last sentence.

There are two directories that are writeable: ./tmp and ./log (under
your application root). If you wish to drop a file temporarily for the
duration of the request, you can write to a filename like
#{RAILS_ROOT}/tmp/myfile_#{Process.pid}. There is no guarantee that
this file will be there on subsequent requests (although it might be),
so this should not be used for any kind of permanent storage.

Cheers,
Marcel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Teich  
View profile  
 More options Mar 26 2010, 1:40 pm
From: Oren Teich <o...@heroku.com>
Date: Fri, 26 Mar 2010 10:40:24 -0700
Local: Fri, Mar 26 2010 1:40 pm
Subject: Re: sass_on_heroku / hassle

hassle stores the stylesheets in varnish, cached for all dynos.

Oren

On Fri, Mar 26, 2010 at 6:30 AM, Marcel Overdijk
<marceloverd...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John McCaffrey  
View profile  
 More options Mar 26 2010, 3:27 pm
From: John McCaffrey <john.mccaff...@gmail.com>
Date: Fri, 26 Mar 2010 14:27:50 -0500
Local: Fri, Mar 26 2010 3:27 pm
Subject: Re: sass_on_heroku / hassle

I threw a quick app together to show how haml and sass can work on heroku,
along with formtastic and a nice jquery dynamic styles changer here:
http://mccaffrey-formtastic.heroku.com/

The project is on github here
http://github.com/jmccaffrey/formtastic_sass_on_heroku

Let me know if you have any questions, I did this a few months ago...

I hadn't heard of hassle, I'll have to check it out.

-John

On Fri, Mar 26, 2010 at 8:30 AM, Marcel Overdijk
<marceloverd...@gmail.com>wrote:

--
-John

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcel Overdijk  
View profile  
 More options Mar 27 2010, 8:50 am
From: Marcel Overdijk <marceloverd...@gmail.com>
Date: Sat, 27 Mar 2010 05:50:57 -0700 (PDT)
Local: Sat, Mar 27 2010 8:50 am
Subject: Re: sass_on_heroku / hassle
Hi Oren,

I couldn't find this information on the hassle github page.
Do you know if Hassle is advised to used by Heroku?

The page and the information on Heroku website seem to be 'outdated'.
Heroku.com still mentions sass_on_heroku but it's github page says
it's deprecated for pedro's Hassle.

Cheers,
Marcel

On Mar 26, 6:40 pm, Oren Teich <o...@heroku.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcel Overdijk  
View profile  
 More options Mar 27 2010, 10:30 am
From: Marcel Overdijk <marceloverd...@gmail.com>
Date: Sat, 27 Mar 2010 07:30:36 -0700 (PDT)
Local: Sat, Mar 27 2010 10:30 am
Subject: Re: sass_on_heroku / hassle
I tried to use hassle today but without succes.

Locally it works but on Heroku server the stylesheet cannot be found.

I've used both
    = stylesheet_link_tag "application.css"
    <link href="/stylesheets/application.css" media="screen"
rel="stylesheet" type="text/css" />
in my layout, but it just can't find /stylesheets/application.css

Note that when I'm running my app locally it writes the compiled css
to ./public/stylesheets and not in ./tmp. Don't know if this should be
the case either?

On Mar 26, 6:40 pm, Oren Teich <o...@heroku.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcel Overdijk  
View profile  
 More options Mar 27 2010, 10:44 am
From: Marcel Overdijk <marceloverd...@gmail.com>
Date: Sat, 27 Mar 2010 07:44:25 -0700 (PDT)
Local: Sat, Mar 27 2010 10:44 am
Subject: Re: sass_on_heroku / hassle
Got it working now, but not as I want...

As long as ik keep sass templates in ./public/stylesheets/sass
and include stylesheets from /stylesheets in html page everything
works fine.

However I like to change the template location of the sass templates
to ./app/stylesheets using Sass::Plugin.options[:template_location] =
"./app/stylesheets".
But when I do this it won't work anymore.

Next to that I would also change Sass::Plugin.options[:css_location] =
"./public/stylesheets/compiled"
So I can easily add this folder to .gitignore.

I'm wondering if this possible with the hassle plugin. Any help
appreciated.

Cheers,
Marcel

On Mar 26, 6:40 pm, Oren Teich <o...@heroku.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Teich  
View profile  
 More options Mar 27 2010, 12:34 pm
From: Oren Teich <o...@heroku.com>
Date: Sat, 27 Mar 2010 09:34:52 -0700
Local: Sat, Mar 27 2010 12:34 pm
Subject: Re: sass_on_heroku / hassle

Hi Marcel,

What's the confusion?  As the github page says, sass_on_heroku is now
hassle.  You should use that one.  Which info on the heroku site is
outdated?

Oren

On Sat, Mar 27, 2010 at 5:50 AM, Marcel Overdijk
<marceloverd...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcel Overdijk  
View profile  
 More options Mar 27 2010, 2:18 pm
From: Marcel Overdijk <marceloverd...@gmail.com>
Date: Sat, 27 Mar 2010 11:18:57 -0700 (PDT)
Local: Sat, Mar 27 2010 2:18 pm
Subject: Re: sass_on_heroku / hassle
I guess I confused myself ;-)

For now I also decided to just use compass/sass without hassle and
commit the compiled css files to git.

On Mar 27, 5:34 pm, Oren Teich <o...@heroku.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
morgoth  
View profile  
 More options Mar 28 2010, 5:19 pm
From: morgoth <w.wnetr...@gmail.com>
Date: Sun, 28 Mar 2010 14:19:26 -0700 (PDT)
Local: Sun, Mar 28 2010 5:19 pm
Subject: Re: sass_on_heroku / hassle
You can try merbjedi fork of hassle:
http://github.com/merbjedi/hassle

It this wont help, you can use Rack::Static middleware like this:

remove hassle
change your sass (compass) settings:
config.css_dir = "tmp/public/compiled/stylesheets"

Create initializer with code:

ActionController::Dispatcher.middleware.use Rack::Static, :root =>
"tmp/public", :urls => ["/compiled/stylesheets"]

This will always compile your sass files to tmp and serve them by rack
static module.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcel Overdijk  
View profile  
 More options Mar 29 2010, 2:41 am
From: Marcel Overdijk <marceloverd...@gmail.com>
Date: Sun, 28 Mar 2010 23:41:18 -0700 (PDT)
Local: Mon, Mar 29 2010 2:41 am
Subject: Re: sass_on_heroku / hassle
Thanks morgoth,

Will try this later.
I guess more people are interested in using haml/sass/compass within
their rails app on heroku.

Perhaps a FAQ can be written on heroku.com how to implement it.
I googled and found this http://blog.heroku.com/archives/2009/8/18/heroku_sass/
but I guess this points people to the wrong directions,
as hassle didn't work. Perhaps http://github.com/merbjedi/hassle
should be merged?

On Mar 28, 11:19 pm, morgoth <w.wnetr...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »