I'm in charge of migrating our website. We currently have a single server hosting both prod and preprod environment.
On our new hosting provider we have 2 servers :
- Prod server hosting prod environment
- Preprod server hosting Preprod and Dev environments
We wanted to share a media/ directory to avoid duplication. Our provider mounted a NFS on the prod server.
We currently can access the directory as expected and create / edit any file when connecting to the Prod server.
Lastly we have on Preprod (and Dev) a php script importing datas and creating (moving, in fact) images to media/. The script generates an error in preprod because the filesystem is in read-only. Makes sense.
When i ask my provider about it he simply answered "it is risky to set NFS in read-write mode. Do you still want to do it ?"
So here is the question :
Are the risks acceptable and what are they ?
I may update the script to write on NFS only in prod environment but then we wont be able to have the preview on preprod. That makes no sense i guess.
I do apologize for my English first and then if i should have post this on another SE site.
Thanks in advance for your tips