I created an open-source project which is using Appwrite as a backend. I am using multiple instances that acts as development, staging and production environment. But everytime I do the change in one environment instance, I have to ship it manually to other instances. Is there a way to automate it?
Also need a system with which, other contributors can also migrate the configuration of the instance to their own Appwrite cloud account for developing features.
Summary
The user is asking for articles or tutorials on automating the shipping process between different instances of their project. They also want to know if there's a way for contributors to migrate the configuration of the instance to their own Appwrite cloud account.
Unfortunately, there isn't currently a built-in solution for these issues. However, the user can use `appwrite deploy` to create new instances of the project for new contributors. They can also write their own migration scripts using a server SDK for schema upgrades. Additionally, they can use the Appwrite CLI to back up database schemas, Functions, storage bucket configurations, etc., and commit the resulting
Sanchit Bajaj
Rank 1: Thread
Dec 30, 2023, 20:20
Multiple instances of same Project
ideclon
Dec 30, 2023, 21:01
Currently, you could use the Appwrite CLI to back up database schemas, Functions, storage bucket configurations, etc. You could then commit the resulting appwrite.json file to your repository, and other contributors could run the appwrite deploy commands to initialise their projects the same way.
ideclon
Dec 30, 2023, 21:03
This wouldn’t really help you with moving between your own projects, as appwrite deploy recreates the resources from scratch - so you’d lose all data in the database, storage bucket, etc
ideclon
Dec 30, 2023, 21:03
Another option (for yourself) is the Migration feature, which does keep all data when moving around.
ideclon
Dec 30, 2023, 21:05
There’s also a planned backups feature for some point in the future, which would allow you to export a Project to some kind of backup file, which could then be imported somewhere else. But that’s not really even at planning stage yet.
ideclon
Dec 30, 2023, 21:06
The best option you really have (right now) is to use appwrite deploy to create new instances of a project for new contributors, and to build your own migration scripts to help you move around between your own Projects.
Drake
Dec 30, 2023, 23:39
Or write your own scripts that use a server SDK to perform any schema upgrades
ideclon
Dec 31, 2023, 00:16
That’s what I meant by your own migration scripts. I probably could have written that a bit better
Drake
Dec 31, 2023, 00:17
Oops sorry missed that last part!
Sanchit Bajaj
Rank 1: Thread
Dec 31, 2023, 06:26
are there any articles or tutorials which I can follow?