Questions tagged [asset-sync]

Synchronises Assets between Rails and S3.

Asset Sync is built to run with the new Rails Asset Pipeline feature introduced in Rails 3.1. After you run bundle exec rake assets:precompile your assets will be synchronised to your S3 bucket, optionally deleting unused files and only uploading the files it needs to.

This was initially built and is intended to work on Heroku but can work on any platform.

Github

34 questions
21
votes
1 answer

Rails 4 static assets in public/ or app/assets/

Sorry if this is a lengthy buildup to a simple question, but I wanted to get my thoughts clear. I've used Rails 4 on a couple projects now and I've been using image_tag('/assets/image.png') to get around the changes to how asset path helpers work in…
8
votes
2 answers

Rails 4.0.3 generating incorrect asset paths with asset_sync

I have used the asset_sync gem many times before with great success, but using it in a Rails 4.0.3 project seems to have caused a problem. The assets are uploaded, hashed and gzipped to the target directory (I just went with the default 'assets'),…
i0n
  • 916
  • 1
  • 8
  • 26
3
votes
1 answer

In rails, what's the best way to deal with really large files (e.g. videos) that you do not want to commit to the repo and asset pipeline?

I've got a rails app. And I've got some really large videos on it in the asset pipeline (couple of gigs worth). What I want to do is remove these videos from the repo and deploy process, becuase huge and it slows the process. However I still want…
CafeHey
  • 5,699
  • 19
  • 82
  • 145
3
votes
1 answer

Fog directory can't be blank, Aws access key can't be blank, Aws secret access key can't be blank

Im using asset_sync gem to upload assets to Amazon S3 bucket. I used dotenv to store my keys and secret keys and deployed using capistrano to Amazon EC2. Everything was fine. But when I moved the keys to .bash_profile on my server and added an…
Santhosh
  • 28,097
  • 9
  • 82
  • 87
3
votes
1 answer

asset_sync gem error: rake assets:precompile fails : does not match the server certificate (OpenSSL::SSL::SSLError)

asset_sync gem error :( The first error I started out with was related to the unf gem, so I added gem "unf", "~> 0.1.3" to my gemfile and tried things again. No luck :( After more research I may have an issue with another setting related to my aws…
Chris Hough
  • 3,389
  • 3
  • 41
  • 80
3
votes
2 answers

Can I remove app/assets on heroku after asset compilation to reduce slug size

Just a ponder. If you compile assets with asset_sync gem and do not fallback to have sprockets compile on runtime can you remove the app/assets folder from your slug using .slugignore to reduce slug size? I've tested and the precompiled assets are…
jhblacklock
  • 146
  • 9
3
votes
1 answer

Problems with Slug size on Heroku when using Asset Sync Gem

I have a Rails 3.2 app that has a lot of assets. That's OK because I'm using the [Asset Sync Gem(https://github.com/rumblelabs/asset_sync) which pushes all my compiled assets to an S3 bucket. Problem is that these assets are still included in the…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
2
votes
1 answer

uninitialized constant Fog::AWS::CredentialFetcher / fog / fog-aws / asset-sync gem error

I just started getting this error: Unable to load application: NameError: uninitialized constant Fog::AWS::CredentialFetcher No changes except to add omniauth-freshbooks gem (and change its client_options: 'site') beforehand - before deployment to…
user3763682
  • 391
  • 1
  • 5
  • 17
2
votes
2 answers

asset_sync modify files content encoding

I am using asset_sync 1.1.0 and fog 1.25.0. When asset_sync uploads my files to S3 and I request them back I find an empty header in the response Content-Encoding:. However when I upload them manually using S3fox, a firefox extension, this header…
Islam Azab
  • 700
  • 6
  • 22
2
votes
1 answer

Rails assets over s3 with asset_sync - CSS background image url missing AWS bucket name

First let me start by saying I'm a complete novice when it comes to Ruby & Rails, so hopefully I'm not making a noob mistake. I've picked up the source for an app which I have successfully deployed to heroku; and running in development mode it works…
Chris Moutray
  • 18,029
  • 7
  • 45
  • 66
2
votes
0 answers

Rails 4 - Asset fingerprints spontaneously go missing from asset paths

Configuration: Rails 4, HTML, CSS, on Heroku. I have a Rails 4 app that has been in production for five months. Here's what's in my production.rb: config.serve_static_assets = false # Do not fallback to assets pipeline if a precompiled asset is…
2
votes
0 answers

Can CDN distribution of assets be combined with HTML5 cache manifest in a Rails app?

In a Rails 3.2 app I'm using asset_sync to host my assets on S3, and Cloudfront to distribute these assets, accessible via 4 CNAME'd URLs. It has been a good way of increasing the app's performance and reducing load on the server. I'm now beginning…
Andy Harvey
  • 12,333
  • 17
  • 93
  • 185
2
votes
2 answers

Rails 4 with asset_sync

Has anyone got the asset_sync gem to work with Rails 4? I have never had a problem with it with Rails 3, but i cannot precompile my assets to my S3 bucket anymore, what happens is everything is just compiled into my public folder. Could anyone offer…
Richlewis
  • 15,070
  • 37
  • 122
  • 283
2
votes
0 answers

file duplication using asset_sync gem on rails 4

I'm having some problems with assets on Heroku (rails) and am hoping someone can point me in the right direction. I've got the asset_sync gem installed, and after many hours of debugging I've finally got it working. However, when I first run (with…
Dave
  • 1,051
  • 1
  • 10
  • 20
2
votes
1 answer

Heroku rake assets:precompile too slow

When I do heroku rake assets:precompile this takes almost 15 minutes everytime I do this and it's taking too long. I am using asset_sync with heroku with S3 but is there a way to speed up this process?
Passionate Engineer
  • 10,034
  • 26
  • 96
  • 168
1
2 3