none
CSS and JS Deployment Best practices RRS feed

  • Question

  • We have 3 environments in our organization namely Dev,Stage and Production.  We do development on the Dev server . Our development involves many things including change in code on ASPX pages,master pages, CSS, JS etc. We have a deployment team which is supposed to deploy these changes to the STAGE and PROD environments. Right now the approach we take to deploy these changes is to manually edit each ASPX, CSS or JS file and enter the changes in it which is a lot of overhead for the deployment team. I feel this is not the proper way.

    Can anyone please suggest an optimum way of doing this work so that the deployment team requires minimum amount of manual intervention and all changes are deployed properly.

      

    Thursday, November 8, 2012 2:37 PM

Answers

  • Yes, with the Farm solution that deploys these files, you can make changes and redeploy and they will be updated on the server, with 2 things to note:

    1. If only changes to existing files are made, you can update the solution with the Update-SPSolution command in Powershell.
    2. If you are adding new files or deleting existing ones, you must uninstall and retract the solution, then redeploy.


    Brandon Atkinson
    Blog: http://brandonatkinson.blogspot.com
    Twitter: http://twitter.com/tehremo

    Friday, November 9, 2012 3:40 PM

All replies