-
Notifications
You must be signed in to change notification settings - Fork 64
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
Excluded file could not be found in production #229
Comments
You excluded the file so it would never be copied into your final war file.David Estes On February 25, 2015 at 9:04:51 PM, Confile (notifications@github.com) wrote: I tried to exclude pdf files from being processed with: grails.assets.excludes = ["*/.pdf"] In my GSP I do: Download PDF It works well in dev mode but in production the file could not be found. — |
How can I access an excluded file like in my case? |
You cant you excluded it. Thats the entire point of exclude. Not sure why you are excluding a pdf file exactly considering its considered a GenericAsset. the effect of processing a file with a pdf extension is simply copying it into your war file , digest naming it and gzipping it. Nothing specialDavid Estes On February 26, 2015 at 8:50:29 AM, Confile (notifications@github.com) wrote: How can I access an excluded file like in my case? — |
I want to exculde it because in production the name of the file changes from |
If you do not want to use digest names for expiring the answer is to simply place the pdf file in the web-app folder instead of assets folder.David Estes On February 26, 2015 at 9:07:48 AM, Confile (notifications@github.com) wrote: I want to exculde it because in production the name of the file changes from someName.pdf to someName-234823492349.pdf``. How can I keep the original name? — |
You are wright thank you! |
I tried to exclude pdf files from being processed with:
In my GSP I do:
It works well in dev mode but in production the file could not be found.
The text was updated successfully, but these errors were encountered: