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
andgit merge origin/master
- And then run
rake compile
(to compile the latest changes) and finallyrake 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:
1 |
|
1 |
|
The code should be self explanatory. All we are doing is, instead of running the command manually automating them.
I am currently working on LiveForm which makes
setting up contact forms on your website a breeze.