I want to start to work on a new project, but I don't have a server at the time, so I would host appwrite on my local machine for development. I would like to share the configuration of the appwrite server (collections, collection attributes, cloud functions, etc) across my desktop and my laptop, to be able to work on the go. Is it possible to do so using git?
You can write a seed script to achieve that, alternatively all the data is stored on volumes (which you can replicate)
I don't need the data, only the configuration
the configuration i.e the collections, functions are also stored on the volumes I believe
I would recommend writing a seed script instead though and upload that to gh
How can I do so?
just write a script using server side sdk which creates collections, adds attributes (if they don't exist) and also the code for cloud functions (if any) and the script should deploy them aswell
If you're not going to make incremental changes and you're okay with wiping and starting fresh each time, you can use the Appwrite CLI: https://appwrite.io/docs/command-line-deployment
What do you mean with "incremental changes"?
For example if you need to add an attribute in the future
What would be the problem?
With the CLI, when you deploy a collection, it wipes the existing attributes and indexes and then deploys what's in the config file
So if you need incremental changes, Arth's approach is best for collections.
CLI is still best for function deployment
Ok
[SOLVED] Share local development instance across multiple devices
Recommended threads
- Github connection error - Self Hosted Ap...
I am trying to connect my github account to deploy a project to sites, but Connect to Gtihub button is disabled. I have configured all Env variables needed for...
- Github Student org plan shows "Free Plan...
For few days, there is banner info appearing, says "Your Free plan includes up to 2 projects and limited resources" in github stundent org plan..?
- Migration Failed from 1.7.4 → 1.8.1: "Co...
Hey everyone! 👋 I'm trying to upgrade my self-hosted Appwrite from **1.7.4 to 1.8.1** and the migration is consistently failing **Environment:** - Current ve...