Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

This plugin will allow you to use SASS in heroku (where public folder is read only), by generating css and js files inside tmp and then accessing them with a controller

License

mooktakim/heroku_sass_and_cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HerokuSassAndCache
==================

This plugin will do the following:
- Generate SASS files inside tmp/stylesheets
- If you are combining all your JS and CSS by adding ":cache => true", it will generate the combined file inside tmp/javascript and tmp/stylesheets

The included controller should allow you to access these files like normal. Etags are provided so that Heroku's Varnish caches the files.

I know, the name is terrible. Its not very imaginative.

Make it work
============

Add to config/routes.rb "map.heroku_sass_and_cache"

There is a rake task available to generate the css files:
RAILS_ENV=production rake heroku_sass_and_cache:generate_style_sheets


Copyright (c) 2009 Mooktakim Ahmed, released under the MIT license

About

This plugin will allow you to use SASS in heroku (where public folder is read only), by generating css and js files inside tmp and then accessing them with a controller

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages