Copied to clipboard

Flag this post as spam?

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


  • Jules 194 posts 426 karma points
    May 09, 2017 @ 15:16
    Jules
    0

    uSync - Shared Umbraco Database

    We have just installed uSync . We are using git for source control and persisting the uSync changes.

    Until now we have been developing using a shared database.

    My question is - should we use a shared database with uSync or should we now all have our own instances. Does it matter?

    Julian

  • Arlan Galvez 44 posts 175 karma points
    May 09, 2017 @ 19:43
    Arlan Galvez
    0

    Hi Jules, if you think to use usync is because you are working in a shared development environment with multiple instances of databases. Usync let you get all info on the database and maintain it on the website folder and then import it on another environment.

  • Jules 194 posts 426 karma points
    May 09, 2017 @ 20:41
    Jules
    0

    In fact I think the way to do this in a shared environment with source control is to have the following settings for all users that share the database:

          <!-- run import at startup -->
          <Import>false</Import> 
    
          <!-- export everything to disk at startup -->  
          <ExportAtStartup>false</ExportAtStartup>
    
          <!-- when a user saves something, write it to disk -->  
          <ExportOnSave>true</ExportOnSave> 
    

    But when pushing to a separate database / environment you would have:

      <!-- run import at startup -->
      <Import>false</Import> <!-- J: This could be set to true if you want to have everything automated.  I tend to want to do a manual import though --> 
    
      <!-- export everything to disk at startup -->  
      <ExportAtStartup>false</ExportAtStartup>
    
      <!-- when a user saves something, write it to disk -->  
      <ExportOnSave>false</ExportOnSave> 
    

    Quite simple in the end

    Thanks

    Jules

Please Sign in or register to post replies

Write your reply to:

Draft