Saturday 3 June 2017

A convenient way to update a project on server

There is a project (node.js - although it's not important), which is developed on the local machine and is periodically transferred to the server. In principle, I could simply erase the project folder on the server each time and replace it with a new one - uploaded from the local machine.
The matter is, that some folders (specifically: node_modules), I do not need to rewrite. So I have to manually create an archive, excluding unnecessary folders from it. And on the server, too, pre-erase everything except for some folders and only then replace.
How can I automate this procedure?
(On the local machine - windows, on the server - Linux)



via s976

No comments:

Post a Comment