Tuesday, October 7, 2008

Steps to deploy sharepoint feature on Production Server.

Using Sharepoint Solution Generator we can easily deploy feature on sharepoint server.
If visual studio is not installed on production server then we can follow below steps to deploy feature on production server.
  • copy the new files and folders that are created by the deployment on your development server to the production server from "%CommonProgramFiles%\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\" folder of development server.
  • copy the DLL that was created to the GAC on the production server.
  • use STSADM to deploy all of the features that were created (there will be one feature.xml in each folder created in Template\Features).
  • either use STSADM or the Admin UI to activate those features.

Here is the STSADM command to Install and activate feature.

  • stsadm -o installfeature -filename \feature.xml
  • stsadm -o activatefeature -filename \feature.xml -url http://site/

I have deployed my custom workflow as feature on prduction server this way. I hope this step help others.

No comments: