Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

Working hard to enrich millions of peoples' lives

Sponsors

News

I was
Co-Founder and CTO of Pageflakes, acquired by LiveUniverse - founded by MySpace founder.

I am
Chief Architect, SaaS Platform, British Telecom

I will be
Chief Architect, Mi...

My Public Page
www.pageflakes.com/omar

View Omar AL Zabir's profile on LinkedIn

Read my blog on:

Omar AL Zabir

www.oazabir.com



Views:

Articles

Open source projects

Automated website deployment using Powershell

I published an article which automates website deployment.

http://www.codeproject.com/dotnet/DeploySite.asp

The Powershell script does the following for you:

· Maintains different configuration information for different deployments. For example, different connection strings for development servers and production servers (one or more production servers).

· Creates a deployment folder using the deployment date, time, and version so that you have a separate folder for each deployment and can keep track of things deployed on a day, e.g., 20061214-1.

· Copies only the change files and some predefined files to the deployment folder. So, you don't deploy the whole website every day.

· Copies the web.config and customizes the <appSettings>, <connectionString>, <assemblies> etc., as per the deployment configuration. For example, you can have different connection strings for different servers.

· Updates all JavaScript files with a version number so that in every deployment, a new file gets downloaded by client browsers.

· Updates default.aspx automatically with the modified script file name.

· Compresses all JavaScript files that gets deployed.

· Compresses all static HTML files using an Absolute HTML Optimizer.

· Creates a zip file which contains the deployment package.

· FTP the zip file to a target server.

So all you need to do is, run the script, extract the zip on server and voila!

If you like it, please vote for me.

 

Posted: Oct 31 2007, 08:31 PM by oazabir | with 3 comment(s)
Filed under:

Comments

Mischa Kroon said:

# November 2, 2007 6:23 AM

John Sumaraga said:

You use a file called ftpcommand.txt $FtpCommandFilePath = [System.IO.Path]::GetFullPath([System.IO.Path]::Combine( $pwd.ToString(), "FTPCommand.txt" ) );

can you provide that for reference

you can email me at the domain listed above with my first name.

Thansk

John

# February 27, 2008 3:07 PM

Sabarinathan Arthanari said:

Thanks for sharing

# July 3, 2008 3:17 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)