Rank 3: Container
which means, if I prefer cli, I must go with it, it cant be syned
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 3: Container
which means, if I prefer cli, I must go with it, it cant be syned
Rank 3: Container
if I add or update field of collection in console , will it update to appwrite setting ?
Rank 5: Hypervisor
Yes, you can pull down to add changes you made in Console to appwrite.json with appwrite init .... As long as you keep them in sync, you should be fine.
Rank 5: Hypervisor
Essentially, appwrite.json will always overwrite anything in Console
Rank 3: Container
right. any way to also get data?
Rank 5: Hypervisor
For data, you'll have to write your own scripts, or use backup + restore.
Rank 3: Container
okay right. so, when I pushed the appwrite.json to github, then other devs can pull and just manually appwrite deploy right
Rank 3: Container
what about appwrite login , use their own local instance right
Rank 5: Hypervisor
Yep
Rank 5: Hypervisor
Yep
Rank 3: Container
nice nice.
Rank 3: Container
@ideclon then i link this question, how can i deploy the change to production serverx
Rank 5: Hypervisor
You can do appwrite login again to switch which server you're connected to, then appwrite deploy ...
Rank 3: Container
Seem similar but production contains data
Rank 5: Hypervisor
Oh, but data, right
Rank 3: Container
Yep
Rank 3: Container
Workflow is like : local console update anything , init to appwrite setting . Then share to dev, then deploy to production server
Rank 5: Hypervisor
I guess for now there's not really much option there. There's this Issue (https://github.com/appwrite/appwrite/issues/5586), which doesn't really seem to have any updates.
Rank 3: Container
Then , i wonder how people out there deploying to production serverr
I would suggest creating migration scripts using a server SDK. You can take inspiration from existing DB migration systems
Rank 3: Container
it should be generatable script by appwrite for standaradnizeness.
Rank 3: Container
I see the appwrite.json is pretty handy for updating the collection schema, would it be better tool in the future to do migration, wihtout losing data.
Rank 3: Container
@Steven
Rank 5: Hypervisor
Rank 3: Container
yes right. hope they will release in upcoming