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

Due to build filename MD5 hashing, Basset is incompatible with load balanced environments #234

Open
pthurmond opened this issue Jul 18, 2014 · 0 comments

Comments

@pthurmond
Copy link

Basset has been working great for us until we decided to roll this live. We have a 3 server load-balanced environment. If one server gives the user the HTML file but another tries to serve a CSS or JS asset that was "built" by Basset then it fails. That is because the build name on one server will be different than on the other.

I looked into using a filter to fix this. But that is not possible because the name is determined and set AFTER the filters are run. I checked for a configuration option for setting file names or the option to pass in a method or closure, but neither is available. The naming method is hard-coded in.

Then I tried checking for post-build options. But there do not seem to be any. So I guess I will have to find another solution. Prior to this Basset has been great. Frustrating.

I would recommend adding in a way to specify file names or generate symlinks with a core name to reference and return. Or, Basset could even allow a function, a post-run filter, or a closure to handle the file naming as a secondary option.

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

1 participant