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

Pack missing from the asset pipeline error on Heroku #327

Closed
Zeneixe opened this issue May 4, 2017 · 6 comments
Closed

Pack missing from the asset pipeline error on Heroku #327

Zeneixe opened this issue May 4, 2017 · 6 comments
Labels

Comments

@Zeneixe
Copy link

Zeneixe commented May 4, 2017

I have the latest version of Packer (Rails 5.1), after deploying to Heroku and trying to reach a page I am getting this error

ActionView::Template::Error (The asset "mycdn.com/packs/application-a62858b370302422758f.js" is not present in the asset pipeline.):
@Zeneixe Zeneixe changed the title Asset pipeline error on Heroku Pack missing from the asset pipeline error on Heroku May 4, 2017
@gauravtiwari
Copy link
Member

@fuffi Could you please add CDN url like this for now - //mycdn.com.

@Zeneixe
Copy link
Author

Zeneixe commented May 4, 2017

@gauravtiwari thanks for the quick reply! So, what we're talking about here is, in production.rb have:

config.action_controller.asset_host = '//mycdn.com'

?

@gauravtiwari
Copy link
Member

that's right 👍

@gauravtiwari
Copy link
Member

Please try that out

@Zeneixe
Copy link
Author

Zeneixe commented May 5, 2017

@gauravtiwari it worked, thanks a lot! Hope it helps figuring out a bug!

@javan
Copy link
Contributor

javan commented May 18, 2017

This was fixed in #397

@javan javan closed this as completed May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants