deploy asp net mvc applications using psexec and git

I’ve been managing a couple of asp.net mvc applications, and I have a bunch of rake/albacore
tasks to compile the asp.net mvc application on the remote server and update the
database using fluent migrator.

Whenever I need to deploy I do the following:

RDP into the remote server

Open git bash => cd to the repository’s directory => do a git fetch and git merge origin/master

And then run rake compile (to compile the latest changes) and finally rake db:migrate(to update the database if there are any db changes)

Even though rake and fluentmigrator make this pretty painless. It’s still a pain
to rdp and do this stuff. So, I came up with a couple of batch scripts to make
this process even simpler. Now I have two batch files in the root directory of
my git repo: