Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have to set config.assets.compile = true in Rails 4.0.3 to make asset_sync paths correct #255

Open
i0n opened this issue Mar 6, 2014 · 6 comments

Comments

@i0n
Copy link

i0n commented Mar 6, 2014

Hi there.

I have found that in order to make the paths generated by asset_sync behave correctly in staging/production I have to define config.assets.compile = true in the relevant environment. If I don't do this then the domain ( in my case S3 ) is generated correctly, but the path remains the same as in development, i.e DOMAIN.com/stylesheets/application.css instead of DOMAIN.com/assets/application-RANDOM-HASH.css Is this a known issue?

@sidwood
Copy link

sidwood commented Mar 10, 2014

I'm experiencing this issue as well.

@steakchaser
Copy link

Seeing the same issue with Rails 4.2.0. Removing the asset_sync gem definitely resolves this; however, I've scoured the asset_sync source and can't find anything that I think would prevent Rails from including the digest in the asset URLs. I don't get it...

@steakchaser
Copy link

See also #257

@traviskroberts
Copy link

Any development on this issue?

I'm encountering the same issue after upgrading a Rails 3.2 app to Rails 4.2.

@aaronlifton
Copy link

+1

@PikachuEXE
Copy link
Member

Maybe you should set
config.assets.digest = true?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants