Can two LookML Projects use the same git repository?
Congrats on your first post!
Yes it is possible to point two projects to the same git repository. I’m interested in hearing why you’re looking into this, however. We see some customers use this setup when they’re trying to sync LookML across multiple Looker environments. You can read more about that here.
Outside of that use case, I cannot think of other reasons to point two projects at a single repo. Can you elaborate on what you’re looking to do?
Is it possible to have one repository for multiple instances, but every instance would connect to different database (different connection name in .model file)? Something like every instance would have its own .model file?
That’s exactly what we do. Essentially, we have many instances (spoke-and-gear style). Each instance has a skeleton project containing the following files:
And a folder called,
Inside the instance.model we have something like,
The base_project is a local dependency which contains all of our LookML. The instance/ contains anything which is specific to this instance.
Insinde the manifest.lkml we have,
This allows us to have one copy of our LookML for all of our instances, while having the ability to add code to this specific instance.
The process still confuses me a bit, so hopefully I’ve not typed anything wrong above. YMMV.
Already have an account? Login
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.