Updating from svn

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
5/22/2009 10:52:42 AM
Gravatar
Total Posts 73

Updating from svn

Joe, I have been trying to figure out how to update from svn, w/o all the svn folders tagging along for the ride. Here is what I have tried:

  1. Doing an SVN update
  2. Copying,  re-naming mojoportal.sln
  3. Performing a build using VS
  4. Exporting to another folder ( this only exports whats under svn protection)
  5. Trying to manually copy all of the folders and files that got copied in during the build out to the export folder (This is where the main issue lies)

Alternatively replacing steps 4, 5 with:

Using unleash it to copy out the contents of the web folder. but the only way I have found to get unleash it to ignore the .svn folders is using an exclude folder mask with \.svn* and setting it to not copy empty folders. I also set it up to ignore the \obj folder as well. This seems to work well, yet I am worried about not copying other empty folders that you use.

How do you do it? I read in the docs that you copy out to a staging folder to do some cleanup before pushing to the web server. Do you copy the svn folders too? Or do you have a method that cleans them?

 

 

 

5/22/2009 11:04:00 AM
Gravatar
Total Posts 18439

Re: Updating from svn

Hi Tim,

As far as I know UnleashIt does not copy the .svn files because they are hidden files. I have never had to do any special configuration for .svn files to be excluded. I do exclude the obj folder. In fact it should only deploy files you have specified in the file masks, so maybe you accidently created a mask for .svn if you are finding those in your package.

The only cleanup I have to do really is changing the Web.config from <compilation debug="true" to false and I remove the .xml files from the /bin folder. When I'm packaging releases I use a clean svn checkout and build without running the site so there are no other files to cleanup but if I package from my working development Web folder I have to clean out files from under the /Data folder like log files, files I've uploaded, stuff in the /Data/systemfiles folder and /Data/Sites/1/systemfiles and other junk that is in the file system from things I've tested in my development. Usually when updateing my own sites I delete the /Data/Sites folder since I don't usually need anything form there to go up to my produiction sites.

Hope it helps,

Joe

5/22/2009 11:51:19 AM
Gravatar
Total Posts 73

Re: Updating from svn

Interesting. I thought it might be that I had hidden files set to show, so I turned that off. I also turned off show system files. Then for good measure, rebooted. Then I reset the unleash it profile, and the .svn folders are still copying. WEIRDness.

5/22/2009 12:02:34 PM
Gravatar
Total Posts 18439

Re: Updating from svn

That is very strange. Are you sure you don't have a file mask configured for .svn? I mean UnleashIt only deploys files of the extensions specified in file masks. Thats how it leaves out .cs files. Unless there are files of the file mask types actually inside the .svn folders I can't see how that would happen. Its never happened for me and I've been doing this for 4-5 years on various machines. I point it right at my Web folder and it never deploys .svn folders. I only use Tortoise SVN, I don't use any svn plugins for VS.

Hope it helps,

Joe 

5/22/2009 12:14:43 PM
Gravatar
Total Posts 73

Re: Updating from svn

I am using unleash it, v2.4.1.0

Yep, checked that too. I just captured this with debug mon:
[3160]
[3160]
[3160] --------------------------- Unleash It Deployment, 5/22/2009 12:03:35 PM ---------------------------
[3160]
[3160]
[3160] ------ Retrieving Folder Structure ------
[3160]
[3160]
[3160] ------ Finished Retrieving Folder Structure ------
[3160]
[3160] ------ Retrieving Files to be Copied and Size ------
[3160]
[3160] Retrieved information for "D:\MojoPortal\Source\Web\App_Browsers\CSSFriendlyAdapters.browser"
[3160] Retrieved information for "D:\MojoPortal\Source\Web\App_Browsers\w3cvalidator.browser"
[3160]
[3160] ------ Finished Retrieving Files and their Size ------
[3160]
[3160] ------ Deploying Files ------
[3160]
[3160] Created directory "D:\MojoPortal\WEB-DEPLOY\App_Browsers"
[3160] Copied "D:\MojoPortal\Source\Web\App_Browsers\CSSFriendlyAdapters.browser" to "D:\MojoPortal\WEB-DEPLOY\App_Browsers\CSSFriendlyAdapters.browser"
[3160] Copied "D:\MojoPortal\Source\Web\App_Browsers\w3cvalidator.browser" to "D:\MojoPortal\WEB-DEPLOY\App_Browsers\w3cvalidator.browser"
[3160] Created directory "D:\MojoPortal\WEB-DEPLOY\App_Browsers\.svn"
[3160] Created directory "D:\MojoPortal\WEB-DEPLOY\App_Browsers\.svn\prop-base"
[3160] Created directory "D:\MojoPortal\WEB-DEPLOY\App_Browsers\.svn\props"
[3160] Created directory "D:\MojoPortal\WEB-DEPLOY\App_Browsers\.svn\text-base"
[3160] Created directory "D:\MojoPortal\WEB-DEPLOY\App_Browsers\.svn\tmp"
[3160] Created directory "D:\MojoPortal\WEB-DEPLOY\App_Browsers\.svn\tmp\prop-base"
[3160] Created directory "D:\MojoPortal\WEB-DEPLOY\App_Browsers\.svn\tmp\props"
[3160] Created directory "D:\MojoPortal\WEB-DEPLOY\App_Browsers\.svn\tmp\text-base"
[3160]
 

I switched to just doing the App_browsers folder only as it speeds up me testing this greatly.

5/22/2009 12:27:05 PM
Gravatar
Total Posts 73

Re: Updating from svn

K, I read this http://forums.asp.net/p/1321970/2629890.aspx#2629890 and then I dug around in the UnleashIt.Common.FileSystemTransfer using reflector, and sure enough the code does not ignore hidden folders. You must have a different version of unleash it?

In the TransferTraverse, he loops the folders like this:

foreach (string str2 in Directory.GetDirectories(source))
{
DirectoryInfo info4 = new DirectoryInfo(str2);
this.TransferTraverse(str2, destination + @"\" + info4.Name, overwriteOlderOnly, copyEmptyDirectories);
}
 

So, this is not really a mojoportal problem.

5/22/2009 12:43:20 PM
Gravatar
Total Posts 18439

Re: Updating from svn

Still, even if it doesn't ignore those folders unless there are matching files in them it doesn't deploy them. I think the difference is you must have checked the box in the UnleashIt profile that says "Copy empty directories", I do not have this checked.

Hope it helps,

Joe

5/22/2009 2:10:30 PM
Gravatar
Total Posts 73

Re: Updating from svn

Woot, yep, you are right. I was worried about checking that off in case it did not copy an empty directory that you needed.

5/22/2009 2:14:38 PM
Gravatar
Total Posts 18439

Re: Updating from svn

The Setup page will create any needed directories that don't already exist, like /Data/Sites/[SiteID]/index for example will be created when the site is created as will /Data/Sites/[SiteID]/skins

Best,

Joe

5/22/2009 3:36:46 PM
Gravatar
Total Posts 73

Re: Updating from svn

Very nice, I am cooking with gas now. :)

You must sign in to post in the forums. This thread is closed to new posts.