ASPX templates
Version 3.x > ASPX templates > Multi-developer environment View modes: 
User avatar
Member
Member
polarwarp-gmail - 2/1/2009 4:41:03 PM
   
Multi-developer environment
How is it recommended that Kentico be set up in a multi developer environment? We will be writing user controls and importing them into the system - so need to know how complicated this is. I thought I had read somewhere that caching can be an issue if developers are just working locally (but off the same database).

We use Visual Studio 2008 + subversion for our source control.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/2/2009 9:27:05 AM
   
RE:Multi-developer environment
Hi,

You can run the CMS in a web farm - http://www.kentico.com/docs/devguide/web_farm_support_overview.htm and also, for the code files in Visual Studio is the source control necessary.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
polarwarp-gmail - 2/9/2009 10:59:58 PM
   
RE:Multi-developer environment
This might just be an issue with the way I've set it up. I was playing with one particular site (ie. only had one running in the site manager). Someone else has started having a play - and he's gone and changed his site to be the one running.

How is he and I able to both work on our own local sites - whilst sharing a database?? As I'm assuming its stored in the database as to which of the ones is running.

Even launching the cms desk through visual studio is launching the one running site instead of mine.

User avatar
Member
Member
polarwarp-gmail - 2/9/2009 11:13:43 PM
   
RE:Multi-developer environment
Sorry - if I could edit my post I would instead of adding a new one.

But - if we set up the web farm and have our files under a subversion source control. At what point would the files get synchronised - would Kentico be responsible for that, or would we have to be committing our files constantly into Subversion?

eg. I get an error when looking at this guy's site - because I don't have his template page on my computer which the site is looking for.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/10/2009 6:43:09 AM
   
RE:Multi-developer environment
Hi,

I assume that the developers know each other and have a deal what to do and not to do. It is not possible to check if the site was stopped by someone else. It is the same if someone shut down a computer while you are on remote desktop. There should be some development rules as well.
The web farm synchronization works for example like that:

You will edit the CSS styles, so you will check out the document. After you finish and check in the document, this change is passed to the DB and then, the other developer will have the new version of the CSS sheet if he/she wants to edit it. Also if the files are being stored on file system, are sent to other servers.

User avatar
Member
Member
polarwarp-gmail - 2/9/2009 11:05:35 PM
   
RE:Multi-developer environment
How do you specifically advise we set this up for multiple developers. Each developer will have the code on their computer. Does each developer's machine need to be set up as a "server" or do we just nominate the details of our dev server as the "server" - and then add that server name to our web config files?

Sorry it's still a bit vague to me :)

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/10/2009 6:44:52 AM
   
RE:Multi-developer environment
Hi,

It us recommended to have the project files and the solution which is being developed in Visual Studio in some version control, e.g. Team Foundation Server.
Then, for the CMS development (CMS Desk and Site Manager), you need to have configured web farms for all machines.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
polarwarp-gmail - 2/10/2009 4:59:41 PM
   
RE:Multi-developer environment
Hi,

So to confirm exactly what is required.

1) Files are put into subversion (our source control)
2) Each developer must add their IP address as a new web farm server? And put their own server name into the config file? (Sorry am still very confused about this step - I have read the web farm instructions a few times.. but need to know how it relates to developer machines rather than "servers").

Being in a web farm server will synchronise any file changes as well as db changes (via the portal engines)?? OR will we need to keep committing file changes to subversion and doing updates?

User avatar
Member
Member
polarwarp-gmail - 2/10/2009 5:00:42 PM
   
RE:Multi-developer environment
Also - are you saying that if 1 site manager includes various sites - that developers cannot work on two different sites at the one time because it requires only one site to be running at a time?? Unless we create different web site solutions & database files??

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/11/2009 12:56:31 AM
   
RE:Multi-developer environment
Hi,

No, you can configure multiple sites running at one time - http://www.kentico.com/docs/devguide/configuring_multiple_web_sites.htm. The sites cannot run on one domain. I meant it so, that if there is a site running and user A is working on it, we cannot disable to turn it of by user B (I wonder why whould he/she do so...).

Best Regards,
Juraj Ondrus

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/11/2009 12:54:21 AM
   
RE:Multi-developer environment
Hi,

1) The files that are being modified in Visual studio - code files aspx, ascx, cs, etc. is good to have under source control as it is usual when developing a solution in VS
2) Of course, each developer's machine have to be listed in the web farm configuration as it is described. The development machines are servers in this case.

The source control will take care about the files beind changed developed in VS. The web farm synchronization takes care about DB and also files uploaded to the CMS.


Best Regards,
Juraj Ondrus