Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • j0w 31 posts 202 karma points
    Apr 23, 2019 @ 14:57
    j0w
    0

    uSync not syncing ?

    I there ! So, going on the next step on uSync... I'm currently trying to modify a document type in my local computer, then apply it to staging environment, but here I'm am, stuck again.

    Like, for example : I delete uSync folder on my computer, and also on the staging server.

    I make a change to a member type, then full export.

    So now, I in the membertype def.config, I have those two properties :

      <GenericProperties>
        <GenericProperty>
          <Key>8c301de7-26f5-47c7-8afd-7258b82a7270</Key>
          <Name>Is new member</Name>
          <Alias>isNewMember</Alias>
          <Definition>f29da1c4-46eb-4209-9c2b-0b4b8121ad5a</Definition>
          <Type>Umbraco.TrueFalse</Type>
          <Mandatory>false</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>0</SortOrder>
          <Tab></Tab>
          <CanEdit>false</CanEdit>
          <CanView>false</CanView>
        </GenericProperty>
        <GenericProperty>
          <Key>03df3259-836a-44e4-8567-b01742c2d3e4</Key>
          <Name>Test Property 1</Name>
          <Alias>testProperty1</Alias>
          <Definition>4cac9e0e-76ef-4880-8114-5c03fc5876b4</Definition>
          <Type>Umbraco.TrueFalse</Type>
          <Mandatory>true</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>3</SortOrder>
          <Tab></Tab>
          <CanEdit>false</CanEdit>
          <CanView>true</CanView>
        </GenericProperty>
    

    I push those changes in my uSyncTest branch, then run a cutom build on staging from this branch.

    When it finishes, the uSync folder is created. But in membertype def.config, I have this :

       <GenericProperty>
          <Key>8c301de7-26f5-47c7-8afd-7258b82a7270</Key>
          <Name>Is new member</Name>
          <Alias>isNewMember</Alias>
          <Definition>f29da1c4-46eb-4209-9c2b-0b4b8121ad5a</Definition>
          <Type>Umbraco.TrueFalse</Type>
          <Mandatory>false</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>0</SortOrder>
          <Tab></Tab>
          <CanEdit>false</CanEdit>
          <CanView>false</CanView>
        </GenericProperty>
    

    The second property is not here...

    umbraco config is as following so member types should be correctly exported right?

    enter image description here

    Also, the example is for a member type, but the problem is the same for every other document type I try to modify

  • Matt Barlow | jacker.io 164 posts 740 karma points c-trib
    Apr 23, 2019 @ 15:42
    Matt Barlow | jacker.io
    100

    When you export on your local machine you are creating files in the uSync folder that contains the definitions for your member types and other types you have selected.

    If you then create a new branch and run a build, you should ensure that those uSync files are included in that branch, and that build.

    Then on your destination server, you have to import those changes from the the uSync config files.

    If this isn't working, then either:

    1. Somehow the uSync files are not in the build - there is something wrong with the build process. I would inspect your build files, to ensure they contain the correct uSync files (with the additional property).

    2. You are overwriting the updated uSync files with data from the staging server. I.e, you are exporting on staging then importing.

    What is your sync setting for uSync on staging?

    Set it to "Manual Sync"- then manually run the import after the build.

  • j0w 31 posts 202 karma points
    Apr 23, 2019 @ 16:03
    j0w
    0

    Hello @Matt, and thanks for your time.

    Config in staging is already set to Manual. :)

    As I checked for now, the changes are correctly included in the branch when I commit the files, and when I deploy the staging environment, it creates the uSync folder containing the uSync .config files.

    But still, I don't understand why the files are created but do not match the .config files I comited...

  • Matt Barlow | jacker.io 164 posts 740 karma points c-trib
    Apr 23, 2019 @ 16:24
    Matt Barlow | jacker.io
    1

    Okay, how are you running your builds?

  • j0w 31 posts 202 karma points
    Apr 23, 2019 @ 16:35
    j0w
    0

    Well, okay, my bad ! I was mistaken, staging confid had been overwritten by some bad comit I made a few days ago.

    So everytime I ran a build, the uSync folder was overwritten... Everything works fine now ! Thanks a lot !

Please Sign in or register to post replies

Write your reply to:

Draft