• About Us
  • Blog
  • Basket
  • Account
  • Sign In
  •  

Forums

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 06 Oct 2017 01:21 PM by  Joseph Dix
Source Control and .dat file
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Zach Wenta



New Member


Posts:
New Member


--
11 Sep 2017 02:03 PM
    Currently, we have the 51Degrees.mobi-Premium.dat file stored in our source control. It weighs in at 212mb. When we are running the project from our dev machines, we on occasion get updates to this file and then that new version gets merged into Source Control.

    Ideally, I'd like to not keep this in my SC and instead have the first time we load the site, get the latest version of the .DAT file. Same for my production servers.

    Is there a way to keep this out of SC and instead pull the file in on first load?

    0

    Joseph Dix



    New Member


    Posts:29
    New Member


    --
    13 Sep 2017 09:08 AM
    Hi Zach,

    Could you inform as to me which API you are using and whether you are using it in a WebApp environment? The majority of 51Degrees APIs support automatic updates, on start the server will check for updated data files and download them.

    Alternatively you could try using git-lfs instead: https://git-lfs.github.com/
    This can be used to replace large files with pointers to remote storage. This is a nice solution as we've found versioning large files can make the repository quite sluggish. Here's a blog about our experience if you're interested https://51degrees.com/blog/51degree...ant-update

    Joe
    0

    Joseph Dix



    New Member


    Posts:29
    New Member


    --
    06 Oct 2017 01:21 PM
    Hi Zach,

    Just sending a quick followup, how did you get on?

    Joe
    0
    You are not authorized to post a reply.