Domanda

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?

È stato utile?

Soluzione 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

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top