At my workplace we use Beyond Compare to deploy Asp.net web sites. We examine the current source, compare it to what's in production, and produce a new version of production to deploy. We then use BC again to perform the actual deployment (done by another person). He takes the merged version, then simply uses Folder Sync with "Mirror" mode to copy all the new/changed files, and delete any removed files from the server in one shot.
It works great. However, it would be nice if we could eliminate the need to use BC for the final step. Instead, it would be ideal if we could generate batch files that use XCOPY and DEL to take all the changes from the local folder and commit them to the target server.
Today I created such a batch file by hand. I used the Folder Comparison Report to list out the changed and deleted files, then I used some Search/Replace in a text editor to turn the lines into batch commands. It's was easy, but tedious.
I ended up not even bothering with individual files for the XCOPY. Instead, I loaded my folders in BC, showed only differences, then used the Copy to Folder to create a "patch" of just the new or changed files into a new folder. Then my batch file simply copies the entire folder over to the server. And I only need individual file commands to delete the orphans that no longer belong on the server.
I would love it if BC did something like this for me. It could take any Folder Sync command, and instead of actually performing it, copy all the files to a new folder and create a batch file to deploy them and plus delete the "right side orphaned" files. At some point, you would type in the true target folder that would go into the batch file as the root of the target paths for the XCOPY and DEL commands.
That would be an amazing feature that my team would use at least once a week.
I would also be open to any other means that BC could be used to create a deployment "package" that can be run at a different time. It could even be an "installer" exe it creates. Just take whatever operations a Sync would do and package them up in an exe. When run, BC would not need to be installed. It would be good if someone could examine the changes it would make before running it.
It works great. However, it would be nice if we could eliminate the need to use BC for the final step. Instead, it would be ideal if we could generate batch files that use XCOPY and DEL to take all the changes from the local folder and commit them to the target server.
Today I created such a batch file by hand. I used the Folder Comparison Report to list out the changed and deleted files, then I used some Search/Replace in a text editor to turn the lines into batch commands. It's was easy, but tedious.
I ended up not even bothering with individual files for the XCOPY. Instead, I loaded my folders in BC, showed only differences, then used the Copy to Folder to create a "patch" of just the new or changed files into a new folder. Then my batch file simply copies the entire folder over to the server. And I only need individual file commands to delete the orphans that no longer belong on the server.
I would love it if BC did something like this for me. It could take any Folder Sync command, and instead of actually performing it, copy all the files to a new folder and create a batch file to deploy them and plus delete the "right side orphaned" files. At some point, you would type in the true target folder that would go into the batch file as the root of the target paths for the XCOPY and DEL commands.
That would be an amazing feature that my team would use at least once a week.
I would also be open to any other means that BC could be used to create a deployment "package" that can be run at a different time. It could even be an "installer" exe it creates. Just take whatever operations a Sync would do and package them up in an exe. When run, BC would not need to be installed. It would be good if someone could examine the changes it would make before running it.
Comment