Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

cloudinary:sync_static for non-image assets? #27

Open
aaronchi opened this Issue · 9 comments
@aaronchi

I'm not sure where to post this, so asking here.

Is it possible to use the cloudinary gem to sync css/js in addition to images using sync_static?

@mkremer

I would also find it very convenient if that rake task would also upload and handle the css and javascript files.

@skwp

Plus one.

@nambrot

Huge Plus one on this as well.

@jjb

I would also like to see this.

The uploader and asset helpers already seem well suited for achieving this -- in fact there are many places in the code where there is "if not an image asset, use original path" logic. This could simply be removed and the different types of paths accommodated.

i managed to hack the uploader to upload css and js, but was defeated while trying to get the unholy mess that is utils.rb to accommodate the asset paths.

If you are open to this functionality I could contribute code, and I imagine some other folks in this thread would also contribute/test.

Let us know if you are interested!

@taragano
Collaborator

Automatic syncing of JS and CSS is currently not supported. You can manually upload JS and CSS files to Cloudinary, but no seamless integration with Rails Asset Pipeline is available for delivery of such files. It's in the road-map though.

@taragano taragano closed this
@nadavs nadavs reopened this
@msroot

+1

@tocker tocker added the enhancement label
@tocker tocker was assigned by taragano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.