Reputation: 2505
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?
Upvotes: 0
Views: 89
Reputation: 760
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
Upvotes: 2
Reputation: 5794
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
Upvotes: 0