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

Cannot install to read-only directory. #30

Open
peterg19 opened this issue Jun 17, 2016 · 2 comments
Open

Cannot install to read-only directory. #30

peterg19 opened this issue Jun 17, 2016 · 2 comments

Comments

@peterg19
Copy link

Due to the line that does "primus.save()" the directory that Eureca is installed into cannot be a completely read-only directory. We install our node installation and key libraries to read-only directories for sharing. Also it seems wasteful or at least inefficient to do that all the time when the data does not change.

Thanks for listening and thanks for Eureca. Great job.

@alaa-eddine
Copy link
Contributor

actually, this is not eureca but primus (the library that eureca.io depends on).
and it's understandable since it wrap many transport libraries, each one require specific client JS.
primus generates the right javascript and save it so it don't need to generate it again.

I think that primus.save() is only executed once when the server starts and the first client require the library, if a new client connects, it'll serve the existing file.

this is also useful to make updates seamless ; sometimes when 3rd party libraries release new versions, the client library script change, and you need to update it, primus use the .save() to handle that for you.

I'll check this primus piece of code closely to see if there is a possibility to disable it from external library, if so, I can add this switch to eureca to let the developer disable it if he want.

@peterg19
Copy link
Author

peterg19 commented Dec 1, 2016

Thank you for listening and thanks again for Eureca.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants