Multiple productions

Hello, I have a question. I've created an app. It's not a web app, meaning it's a Shopify plugin. I've connected a domain to the app I've created. Now, I'm going to publish the same app on a different domain for a different client, with different env values. However, I want to do future development in both systems. Whenever I develop on one side, the same should apply to the other. The code is shared, and the DB structure is shared, but the domain and env values ​​are different. How can I do this? How can I ensure the code and DB structure are common? Actually, if I could create multiple devs, just like I can create multiple productions, my problem would be solved, but I don't have this on my site. How can I solve this?
1 Reply
Chocci_Milk
Chocci_Milk2w ago
Hello, I think that your best bet would be to make 2 Gadget apps with the same code. The best way to keep them in sync would be to have a Github repository with GH actions that allow you to push the code/deploy to the other application. Therefor, you would only be testing/deving in one app but you could publish to 2 These docs might make sense to read: https://docs.gadget.dev/guides/environments/ci-cd#automated-deployment-using-a-ci-cd-pipeline And these for pushing examples: https://github.com/gadget-inc/templates/tree/main/.github/workflows Hopefully that makes sense Note that extensions and such will need to be deployed using the Shopify CLI

Did you find this page helpful?