Atomic Upload of php file to server?

If I am editing a php file on my desktop and I want to push it up to the server will it do an atomic upload?

That is, will it upload it somewhere with a temporary name/location and then once it is all there do a quick rename to put the new code in place.

With a regular FTP-like upload the production file is overwritten a block at a time, and it is possible that a user would be visiting the website after only a portion of the file was there. This gives rise to “critical error” messages in wordpress.   The error goes away of course when the FTP upload is finished and the user tries again.  But I don't want this error to occur at all (or at least minimize the occurances of it)

0

Hi there,

There is “Use a temporary file during upload” option in the deployment Options:

Select this checkbox to use a temporary name for the changed file that is being uploaded to the server, and only rename it back after the upload operation has been successfully completed.

Would that do what you want?

0

请先登录再写评论。