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

Theme assets not found after precompiling #137

Closed
cmckni3 opened this issue Oct 2, 2015 · 12 comments
Closed

Theme assets not found after precompiling #137

cmckni3 opened this issue Oct 2, 2015 · 12 comments

Comments

@cmckni3
Copy link
Contributor

cmckni3 commented Oct 2, 2015

The frontend of the site isn't using the correct path to the theme assets. It should use the path /public/assets/themes/[theme-name]/assets/css but it only get /public/assets/css

I set serve_static_files to true and assets.compile to false. For now, I enabled compilation and disabled serving static files but this needs to be investigated.

@owen2345
Copy link
Owner

owen2345 commented Oct 4, 2015

Chris, where is this error?

@cmckni3
Copy link
Contributor Author

cmckni3 commented Oct 4, 2015

I setup a site for use in production. I'll put an example on heroku.

@cmckni3
Copy link
Contributor Author

cmckni3 commented Oct 5, 2015

I'm deploying a sample app to heroku right now.

@cmckni3
Copy link
Contributor Author

cmckni3 commented Oct 5, 2015

@flaranda
Copy link

Similar problem here.

@owen2345
Copy link
Owner

Today I will review...

@cmckni3
Copy link
Contributor Author

cmckni3 commented Oct 14, 2015

I believe I figured out part of my problem. I'm going to confirm the fix in another app. PR coming soon as well.

@cmckni3
Copy link
Contributor Author

cmckni3 commented Oct 14, 2015

👍 Looks good on my end. Just had to change the stylesheet link in my theme to css/main.css.

@owen2345
Copy link
Owner

great!

@cmckni3
Copy link
Contributor Author

cmckni3 commented Oct 14, 2015

Precompilation just finished on my other app and everything is working great with serving assets through nginx. So glad to resolve this issue. 👍

@flaranda Check your theme to make sure you have the extension when referencing the main stylesheet stylesheet_link_tag theme_asset_path("css/main.css")

@flaranda
Copy link

Great! Thanks @cmckni3 :)

@cmckni3
Copy link
Contributor Author

cmckni3 commented Oct 23, 2015

No problem @flaranda

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

3 participants