After walking through the LSIF quickstart guide, add a job to your CI so code intelligence keeps up with the changes to your repository.
Your CI machines will need two command-line tools installed. Depending on your build system setup, you can do this as part of the CI step, or you can add it directly to your CI machines for use by the build.
Start with a periodic job (e.g. daily) in CI that generates and uploads LSIF data on the default branch for your repository.
If you’re noticing a lot of stale code intel between LSIF uploads or your CI doesn’t support periodic jobs, you can set up a CI job that runs on every commit (including branches). The downsides to this are: more load on CI, more load on your Sourcegraph instance, and more rapid decrease in free disk space on your Sourcegraph instance.