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
Make it easier to debug the asset pipeline #24
Comments
I've never been a big fan of the way the rake task detection works. Is there a better way than using |
This is related to #9. |
A better way? No. |
Proposal:
While a completely separate issue, follow Python's lead and allow users to turn off the pipeline entirely via |
@wuputah how does python do this? |
:s/ @wuputah / @kennethreitz / |
I allow users to disable it with |
@kennethreitz what happens if collectstatic fails (and, of course, is not disabled)? |
I do a dry run first. If it fails, nothing happens, the user doesn't see anything about. If the dry run passes, I run it, if it fails, i tell them the output, and point to documentation on how to debug w/ |
In the latter case, does the build still succeed? |
Yes. I had it fail at first, but too many people have configuration issues for that to be practical. People have crazy configurations. |
In the long term future, I'd like to remove this feature completely and replace it with "add this oneliner to a build hook (e.g. But, some things have to happen for that to be a reality. |
Okay, to come back to what I was talking about earlier, I was principally referring to Kenneth's use of |
@wuputah i don't think we should be pushing build stuff through config vars. |
Should be solved by #34 |
Re-enabled caching bower packages and registry
Debugging pipeline issues can be hard and devious. If the
--dry-run
fails, it looks like the pipeline support is not working at all, since there's no output. Here's what's currently required to track down issues:That said I am not sure what the best solution is, but here's some ideas.
--trace
enabled on the--dry-run
and the task itself?File.exists?(".debug-asset-pipeline")
?--dry-run
failed and that's why the pipeline stuff isn't working? Maybe just blindly do this ifsprockets
is present?The text was updated successfully, but these errors were encountered: