+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Team Foundation Server - Auto deployment issues

Team Foundation Server - Auto deployment issues

2 posts, 1 answered
  1. Dave
    Dave avatar
    22 posts
    Registered:
    05 Nov 2012
    06 Dec 2012
    Link to this post
    Hi, 

    I read this thread: http://www.sitefinity.com/devnet/forums/general-discussions-/team-foundation-server-help

    We are having problems allowing multiple developers to develop in their local sandboxes and not have their configuration files stomp all over each other on check-in. We have our tfs setup to allow us to publish to DEV from tfs. The only code that gets into DEV is from a published build out of TFS (not a local dev machine). 
    Our layout is like this: 
    we have a (local dev env) -> dev -> test -> prod 

    Our problem is this: Developer A make changes to things like the 'news item templates' and it generates a bunch of config files. Developer B makes changes and it generates/modifies the same config files. Our problem is: how do we track changes over time on the config files? Should we just not do it? Because it is causing all sorts of headaches. 

    A better question I guess is...  What is the Telerik Procedure for having multiple developers work on a Sitefinity site at the same time? Do you guys each pull your own source down from source control and have separate database/configs? Or do you all share database/configs? 
  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    08 Dec 2016
    11 Dec 2012
    Link to this post
    Hi,

    The approach I reccomend is to get the latest config files locally and then merge the latest changes to those file in TFS.

    Sitefintiy can also store config files in the database, however this is only available fully on newly created projects. When configuring database storage for a project where the configs are already in the file system newly created configs will be written in the database.

    Fully moving the configs to the database is not supported,
    e. We have not tested this, you could try migrating the configurations manually. However, you might need to keep the SecurityConfig.config and DataConfig.config in your file system.
    You should make a backup of your project and database before trying this. Change the project to use database configurations and try migrating the rest of the configurations using the following script:
    -- Change the DB name and schema!
      
    INSERT INTO [sitefinitysaas].[dbo].[sf_xml_config_items] (
        [id], [app_name], [path], last_modified, dta
    ) VALUES (
        newid(), '/', 'WorkflowConfig.config', getdate(),
        '<workflowConfig useExternalEndpointOnWindowsAzure="True" />'
    )

    The values are:
    - id - A random Guid.
    - app_name - The name of your application.
    - path - The name of your configuration file.
    - last_modified
    - dta - The data in your configuration. You could copy the xml from the file and paste it here.




    All the best,
    Stanislav Velikov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
2 posts, 1 answered