I am hoping to find an easy tool or method, that allow's managing our code deployment.
Here are the features I hope this solution has:
-
Either web-based or batch file, that given a list of files, will communicate to our production server, to backup those files in different folders, and zip them and put them in a backup code folder.
-
Then it records the name, date/time, and purpose of the deployment.
-
Then it sends the files to their proper spot on the production server.
I don't want too complex an interface to doing the deployment's because then they might never use it.
Or is what I am asking for too unrealistic?
I just know that my self-discipline isn't perfect, and I'd rather have a tool I can rely on to do what needs to be done, then my own memory of what exact steps I have to take every time.
How do you guys, make sure everything get's deployed correctly, and have easy rollback in case of any mistakes?
Best Answer
All this can be done by a batch file. The following are the basic steps need to happen in batch file:
Except the first step, the other two steps are very basic command line operations. Regarding the first one, the following code shows how to get a directory with date time: