Question

I have a javascript file which is generated by simple ruby-script and saved in public/js/ dir. It's working, but i want to use something like assets pipeline (ye, i know there are few for sinatra), so this file will be generated after each deployment.

What is the best way to do this?

Was it helpful?

Solution 2

This gem may work for you

https://github.com/kalasjocke/sinatra-asset-pipeline

Other wise, feel free to use a few gems that does the job here

http://mutelight.org/asset-pipeline

OTHER TIPS

You'd probably want to use git hooks in combination with a rake task. Take a look at: http://jimneath.org/2012/05/05/precompile-assets-using-a-git-hook.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top