-
Notifications
You must be signed in to change notification settings - Fork 791
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
Bug: Aliased indexes failing on deploy #139
Comments
Aliased Indexes have a lot of gotchas right now. See #40 |
Ah ok thanks @rafaelfranca 👍 |
The good news is that I think I got my email working again. I was able to repro with the code from @eileencodes which was hugely helpful, thanks! When I grep for absolute paths in the parent app's cache directory here's what i'm seeing:
So it looks like the absolute path is being appended to
This is good news because 3.x does not have this bug since it doesn't have the index_alias feature The reason why your patch works is because...I don't know, I haven't gotten that far yet. I'm going to prioritize looking into #141 since that affects an actively released versions (3.3 series). I'll come back to this issue after. |
We recently upgraded to Rails 5 / Sprockets 4 and when I deployed had an issue with aliased indexes.
This happened on
assets:precompile
on our production deploy - for some reason deploys to our beta servers went fine. In fact the first deploy was fine, but a subsequent deploy of changes to CSS resulted in the error. Perhaps this is a caching issue in index_alias that was missed in b0b3c66?The error we saw on deploy was:
Sprockets::FileOutsidePaths: /u/apps/bc3/releases/20150921151240/app/assets/stylesheets/all/index.scss is no longer under a load path:
The structure we have in our js/stylesheets is
To fix I had to add an
all.scss
file that requiredall/index
. I think index aliasing may not be working as expected and that the error message could be clearer. Previously in sprockets 3 we didn't need to add anall.scss
just to require the index file from theall
folder.cc/ @jeremy if you want to add any details.
The text was updated successfully, but these errors were encountered: