asset-rack icon indicating copy to clipboard operation
asset-rack copied to clipboard

Get compilation results on deplyment

Open max-degterev opened this issue 11 years ago • 5 comments

Hi!

AssetRack is awesome for development, but I cannot figure a best way to get compiled results on deployment. I wanted to serve static assets with nginx and proxy all other requests to node. I see that AssetRack supports Amazon S3 and other cloud storages, but what if I want to serve resulting assets locally? Can you add a way to get compiled results for deployment, save them to a disk or something?

max-degterev avatar Mar 04 '13 12:03 max-degterev

Alright, this is finally done:

https://github.com/techpines/asset-rack/blob/master/README.md#running-in-production-mode

techpines avatar Mar 04 '13 15:03 techpines

Awesome! Will test today on my project! Thanks!

max-degterev avatar Mar 05 '13 12:03 max-degterev

Im sorry still not getting it. I'm proxying my public folder through nginx to make it faster. I thought I could write results of compilation to disk somewhere. Preferably in the public folder :)

max-degterev avatar Mar 05 '13 17:03 max-degterev

Ok, you want to write the assets to disk. It's coming.

techpines avatar Mar 05 '13 22:03 techpines

Yup exactly. Right now we came up with this: https://gist.github.com/suprMax/5101852 as a temporary measure. Would be nice to see that working out of the box

max-degterev avatar Mar 06 '13 18:03 max-degterev