When my deploy starts and finishes, it takes about some minutes to upload everything. Meanwhile the app on the site doesn't work properly! What I would do before, was to upload everything into a _temp folder and then after the upload finishes rename the Main folder to old and rename the _temp folder to become the new Main folder and then remove the old folder.
That way the site goes down for a fraction of a second. I don't see create folder and rename in the API docs, would you help me with a sample code of how to go about that?
https://github.com/mscdex/node-ftp has rename(). You could use that one instead. Altough you're right, this use case is perfectly valid and vinyl-ftp could/should export rename() also.
When my deploy starts and finishes, it takes about some minutes to upload everything. Meanwhile the app on the site doesn't work properly! What I would do before, was to upload everything into a
_temp
folder and then after the upload finishes rename the Main folder toold
and rename the_temp
folder to become the new Main folder and then remove theold
folder. That way the site goes down for a fraction of a second. I don't see create folder and rename in the API docs, would you help me with a sample code of how to go about that?