4 ms·
What happens if you need to drag and drop 2 php files and someone makes an HTTP request that gets processed right in-between the update of each file ? They wil
by 1337shadow 6y ago
What happens if you need to drag and drop 2 php files and someone makes an HTTP request that gets processed right in-between the update of each file ?
They will surely get something weird, an error at best. Containers allow transactional deployments and FTP does not.
- speedgoose 6y agoTrue. Perhaps you can upload to a temporary folder first, rename the old production folder to something else, and rename the temporary folder to the normal production folder. You may serve a 404 error if someone manages to do a request between the two renaming operation but I'm sure it's fine.
- 1337shadow 6y agoIt's definitely better, but then it's not ZDD is it :)
- aprdm 6y agoOr just change a symlink to the new folder