#Git Sync - Add two projects to same repo (multi environment)

1 messages · Page 1 of 1 (latest)

bronze coyote
#

Hi, I'm trying to connect two separate appsmith projects to the same gitlab repo.

I'm doing this because our app will have a separate database and appsmith installation for each different company we support, to keep their data segregated.

When I import a new appsmith instance from the existing repo, it gives me this error:

The ssh keys are valid (it pulled initialized the appsmith app properly), and they have write access.

#

The goal is to have different companies be able to access the app with their own data on separate urls. And we roll out updates to their apps by just pulling in any changes to the repo

willow fern
bronze coyote
#

Hey @willow fern yes that could potentially solve our issue. Although we will need a separate project URL for each company we sign up on the app.

#

Although, I'm still confused as to why I'm getting this error.

#

Is it not possible to connect two Appsmith projects to the same Git Repo?

#

I think I may have found a solution, the Data Sources are saved/named at the workspace level. So having two projects with the same named data sources, but different setting within the workspace cause a conflict.

#

This is probably the source of the error

compact horizonBOT
#

Hi! We can connect only one app with one git repo at a time. It is not possible
to store multiple apps on the same repo.

bronze coyote
#

Alrighty, I'll have to think of a work-around until you guys add the possibility to load environment variables, so we can hit different apis and have different settings for dev, prod-company1, prod-company2 etc

#

Thank you 🙂

compact horizonBOT
#

Please also upvote the GitHub feature request regarding Multiple Environments
and add a comment with your use case. It would help us prioritize it.

bronze coyote
#

Will do