CopySauce, Igloo’s Sitecore Development Utility
Igloo have developed a utility that will speed up your Sitecore development by increasing your programming efficiency. CopySauce moves edited files from your source directory to your webroot instantly.
A Typical development setup for CMS projects like Sitecore is to have source code and the website root in separate directories.
It’s something that Sitecore MVP, Sean Kearney, blogged about a while ago.
He mentioned the benefits being:-
1. Clear ownership of files in the solution
2. Clear ownership of files in the file system
3. Easy ‘code-shipping’ to the client.
4. Development environment matches closer to the production environment. (no .cs files or config transforms)
With this setup projects typically have a post build step that copies the web project to the webroot. Typically this is done using MSBuild scripts, or by utilising the deployment feature in Team Development for Sitecore.
The problem with this, as many people mentioned in the comments section of his post, is the high frequency of ASP.NET app pool restarts.
Every time a build is run, the Web.config or the bin directory is updated, and the website’s app pool will restart.
Fed up with the slow reloads, one of our front end developers, Dave Nicolson, created CopySauce, an application that watches the web file changes, and copies them to your webroot as you go.
By doing this, you can quickly see your rendering changes without having to do a full build, so there’s no large reload times.
This means that the front files can be edited in their source control location, and be instantly seen on your local website.
Out of the box, CopySauce copies any non-compiled files you want to webroot directory. At Igloo we use this for .css, .js, .cshtml, .aspx, .ascx, .jpg, .png files.
The application is customisable, so you can tell it what filetypes to watch or ignore, and which directories to keep track of. View the instructions and check out the settings file to see how we exclude .cs files.
Give it a try, and make your website development a lot easier.