R – Promoting MOSS ’07 Sites From Dev To Production

administrationmigrationmosssharepoint

So, maybe I'm a bit old-school, but when we created websites in the past, we'd develop the site on a development server, then publish or promote the pages and files to the production server. This has always seemed to be a good way to go so that users didn't see messed up pages or (God forbid) a downed server because one of us screwed up.

But it doesn't seem that Microsoft had this idea in mind when they created SharePoint…at least, I haven't been able to find a way to do this in the infrastructure as it's defined.

Does anyone know if there's a management strategy for SharePoint development? I've read online that we can make a backup of the development environment and restore to the production server. That might work the first time, but any updates to the production server can't do that without risking data loss on the production server. I've seen some tools out there for migrating list contents, pages and documents from one server to another–although, admittedly, I've not yet investigated them.

But, another concern of mine is custom content types. It seems that once a list is using a content type, you can't update it without deleting the items from the list, disassociating the content type, and reassociating the content type. Shouldn't there be some way to UPGRADE a content type?

Anyway, if you have any suggestions for any of these current dilemas, I would LOVE to hear from you.

Thanks in advance,

Dan


Thank you for your quick reply.

We already have several features created for our site and a solution package bundling features directed at the fundamentals (content types, columns, etc), and another solution for features having to do with branding (page layouts, master pages, etc.)

But it seems like this is a one-time-shot…basically, it gets our server set up, right? Once people have started using the production environment, we're going to have documents, pages, list items all existing in our content database, and it'll be impossible to update things like content types, columns.

Features you have to deactivate and uninstall before you can install and activate the new feature, right? I've seen a Version property on the feature definition, but as near as I can tell, this doesn't do anything. Solutions seem like they can be upgrade by incrementing the version number, but it doesn't seem to modify things like content types and columns–especially if they're in use. Plus, I'm not sure how extensive the upgrade with solutions is.

There's precious-little documentation out there for this sort of thing. It seems like everything I'm reading is how to get your SharePoint server set up initially…not managing it long term.

Do you have any advice or suggestions?


Thank you all for your suggestions.

But we've been working on this site for over a year now. I'm pretty confident that we're already setup according to what most of you are recommending. We already have several features that install things like content types, columns, master pages, page layouts, and workflows. Most of these features are contained within solution packages. We have all of our development environments set up as VPC servers.

So, I have the initial deployment pretty much set. What I'm REALLY hoping to find out is how I can upgrade things like content types and columns and stuff down the road. Is it possible to change content types once they're in use? Because it doesn't seem, based on my initial testing, that this is possible. I'm not to worried about the assemblies because it looks like they swap out just fine, but the only way I've gotten a content type updated is by deleting any items referencing them (i.e. all the pages in my pages library), removing the content type, then re-adding it.

Do any of you know if there's a way to update a content type AFTER the initial deployment? …when users have already created items based on the content types we've already deployed?

(The other part of my question was actually moving existing pages from the development server to production, but I can live without that. My major worry is the content types.)

Best Answer

The best way to go is developing with features. Once the features are done, you ca deploy them with Solution package (called WSP).

The only thing left to do is to reactivate those features. That way, you can progressively roll-out new features without having to do everything in production.

WSPBuilder is an application that helps you build WSP.

For automating all of this... good luck. There is a lot of work involved.

UPDATE: Deploying Content Types and Columns are tricky. Once the website has been created, you can't update them anymore through features. You need to go through the code and recursively go through all the sites and modify the specific content type that match the name.

We've tried and it's not possible to do that normally with features. This need to go through something I call "deploying with code".