Jeff Wallace
Jul 1, 2011
  5584
(1 votes)

Manual Code Deployment Using the Visual Studio Publish Feature

Based on CMS 6 and Visual Studio 2008

Code deployment in EPiServer, not to be confused with content,  is typically done using the preferred .NET deployment tool. EPiServer enables a flexible choice to be implemented as appropriate for your solution based on your requirements, toolsets, and preferences. This could be as simple as utilizing the Visual Studio Publish feature for manual deployment or by using automated build/publish scripts with tools like Microsoft TFS and MSBuild. As an additional example, others have used alternate preferred solutions such as Subversion for Source Control and CruiseControl.NET for build and deployment.

I had documented the high level manual steps for using Visual Studio 2008 some time ago but, wrapped up and juggling many other things, I’d never posted it.  It’s a bit dated since the specific details and screen shots are based on that rusty old Visual Studio 2008 but should still prove useful for many.

The high level steps are as follows:

1. On the Development Workstation

  • Build the project in Visual Studio using the Release configuration.
  • Publish only the files needed to run the application to a local folder (that is NOT part of a website) using the Visual Studio Publish feature.  Note that this does NOT include the configuration files.  You will need to use the configuration files created by the EPiServer Deployment Center in the following steps and add your configuration changes to them or you will get an “access denied” error when browsing the target site.

http://msdn.microsoft.com/en-us/library/aa983453.aspx

image

2. On the Target Web Server

  • Create a site without a database using the EPiServer Deployment Center.

clip_image002

  • Copy all of the files published from Visual Studio to the physical path of the site that was created using EPiServer Deployment center replacing files on the target (e.g. C:\EPiServer\Sites\<mynewsitename>).  The directory will look similar to the screen shot below:

image

3. On the Target Database Server

  • Copy the EPiServer database files from the Visual Studio project to the target database server and attach the database using SQL Server Management Studio.
  • Create and grant access to any logins that your application will need to access the EPiServer database.

4. On the Target Web Server

  • In connectionStrings.config (located at C:\EPiServer\Sites\<mynewsitename>), modify the database connection string  to point to the newly attached database.
  • In episerver.config (located at C:\EPiServer\Sites\<mynewsitename>), modify the "pageStartId" attribute of the siteSettings element(s) to point to your start page(s).
  • Add any other configuration settings to the configuration files that you made  specifically for your site(s).

 

Cheers!

Jul 01, 2011

Comments

Please login to comment.
Latest blogs
Opti ID overview

Opti ID allows you to log in once and switch between Optimizely products using Okta, Entra ID, or a local account. You can also manage all your use...

K Khan | Jul 26, 2024

Getting Started with Optimizely SaaS using Next.js Starter App - Extend a component - Part 3

This is the final part of our Optimizely SaaS CMS proof-of-concept (POC) blog series. In this post, we'll dive into extending a component within th...

Raghavendra Murthy | Jul 23, 2024 | Syndicated blog

Optimizely Graph – Faceting with Geta Categories

Overview As Optimizely Graph (and Content Cloud SaaS) makes its global debut, it is known that there are going to be some bugs and quirks. One of t...

Eric Markson | Jul 22, 2024 | Syndicated blog

Integration Bynder (DAM) with Optimizely

Bynder is a comprehensive digital asset management (DAM) platform that enables businesses to efficiently manage, store, organize, and share their...

Sanjay Kumar | Jul 22, 2024

Frontend Hosting for SaaS CMS Solutions

Introduction Now that CMS SaaS Core has gone into general availability, it is a good time to start discussing where to host the head. SaaS Core is...

Minesh Shah (Netcel) | Jul 20, 2024

Optimizely London Dev Meetup 11th July 2024

On 11th July 2024 in London Niteco and Netcel along with Optimizely ran the London Developer meetup. There was an great agenda of talks that we put...

Scott Reed | Jul 19, 2024