-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
Support for clustered deployment #1069
Comments
@jdunmore That's a great idea, but I've got a few questions for clarification: a) As I suppose you're talking about css/js/images and not any code that's included server-side, in my opinion the assets of the phpMyFAQ default template (your mileage may vary) are pretty minimal, so it probably can't be the space - is it about serving static content AT ALL versus php code? b) There's also attachments, these would probably have to be saved to and retrieved from S3 as well? So from a highlevel view, assuming |
From my point of view, it's all the attachments (should have said that) and user content - css/js/styling images can deal with as a redeployment of the code base, but "user" generated content is the issue here. I haven't looked into the back end database of phpmyfaq, but if the reference to the attachements is a URI, then just pointing it to the s3 bucket URL should be a straight forward swap. The advantage as well, is that it takes a lot of load off the webserver doing heavy lifting such as downloading PDFs, etc. Not to mention, it's then got backup by default. Thanks. |
+1 for this - it would be great to be able to deploy phpMyFAQ to AWS or similar right away instead of implementing this in your own fork |
Hi,
We deploy our webservers in a multi node environment (we're using docker, but the notion of multiple transient web servers with transient file systems isn't a new one), therefore we have to make a special case for the deployment of phpmyfaq - i.e. it needs a persistent file storage server, that's shared across web nodes.
It would be great if you added support for asset storage in S3 buckets (regardless of our deployment setup, segregating assets from the code base is never a bad thing).
We use this for our solution, I'm sure you might find it helpful:
https://github.com/thephpleague/flysystem
(then you can support multiple backends).
Thanks,
James.
The text was updated successfully, but these errors were encountered: