less/more and Heroku

I’ve been using the less gem and the more plugin together on heroku. Recently, the more maintainers changed the plugins concept and stylesheets are not generated on the request anymore. I haven’t found any explanations as to why this is and I still like the old version, so I forked the project and reset —hard back to what they had before.

If you want the old way (with the latest heroku fix):

./script/plugin install git://github.com/amiel/more.git --force

EDIT: I don’t use the more plugin anymore. I use rails 3.1 with the new less gem. This plugin has since been deleted.

Comments
Filed ↓ heroku
Rails 3 is DRY like a well-aged scotch :-)
Overheard in the Rails Online Conference Chat
Comments
If you are not embarrassed by the first version of your product, you’ve launched too late
Reid Hoffman, founder of LinkedIn
Comments
I mean, really, if Java had proper garbage collection, most programs would self-delete on execution.
Comments

heroku with lesscss more plugin

Something just happened at heroku. They used to provide an environment variable HEROKU_ENV, but for some reason its not there anymore.

This is a problem only because the more plugin for lesscss used the presence of that environment variable to test for heroku. Now, all my apps on Heroku using more are failing.

so, for those of you with the same problem, here is a quick fix:

heroku config:add HEROKU_ENV=production

Comments
Comments
Programs that write programs are the happiest programs in the world.
Comments

Using I18n in cucumber

I know this defeats part of the concept of cucumber, but for my purposes, it means less work down the road when our copywriter comes in to edit my en.yml file.

Comments
Filed ↓ cucumber

javascript flash of unstyled content

I’ve been trying to put <script> tags near </body> for performance. However, this causes a “flash of unstyled content” while content that is hidden by javascript is loaded but hasn’t been taken over by javascript. One option is use display:none to hide the content, but that is not very unobtrusive.

Put this snippet in <head>, and the rest of your javascripts just before </body>.

Comments
Filed ↓ javascript
« Previous