Back

Keep Sync of Team

  • 0
  • Self Hosted
  • Accounts
  • Tools
Suiii
7 Nov, 2023, 11:42

which means, if I prefer cli, I must go with it, it cant be syned

TL;DR
The user is discussing the synchronization of team settings with Appwrite. They mention that the appwrite.json file is useful for updating collection schemas and suggest the creation of migration scripts. They inquire about deploying to production servers and express frustration with the lack of updates on an issue. The workflow of updating locally, sharing with developers, and deploying to production is discussed. The user asks about deploying changes to the production server and also expresses a desire to get data. The possibility of using the appwrite login command and manually deploying changes is mentioned. The user asks if it is possible to also sync data. It is stated that appwrite.json will always overwrite
Suiii
7 Nov, 2023, 11:45

if I add or update field of collection in console , will it update to appwrite setting ?

ideclon
7 Nov, 2023, 11:48

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.

ideclon
7 Nov, 2023, 11:49

Essentially, appwrite.json will always overwrite anything in Console

Suiii
7 Nov, 2023, 11:50

right. any way to also get data?

ideclon
7 Nov, 2023, 11:51

For data, you'll have to write your own scripts, or use backup + restore.

Suiii
7 Nov, 2023, 11:54

okay right. so, when I pushed the appwrite.json to github, then other devs can pull and just manually appwrite deploy right

Suiii
7 Nov, 2023, 11:55

what about appwrite login , use their own local instance right

ideclon
7 Nov, 2023, 11:55

Yep

ideclon
7 Nov, 2023, 11:55

Yep

Suiii
7 Nov, 2023, 11:55

nice nice.

Suiii
7 Nov, 2023, 11:59

@ideclon then i link this question, how can i deploy the change to production serverx

ideclon
7 Nov, 2023, 11:59

You can do appwrite login again to switch which server you're connected to, then appwrite deploy ...

Suiii
7 Nov, 2023, 11:59

Seem similar but production contains data

ideclon
7 Nov, 2023, 11:59

Oh, but data, right

Suiii
7 Nov, 2023, 12:00

Yep

Suiii
7 Nov, 2023, 12:05

Workflow is like : local console update anything , init to appwrite setting . Then share to dev, then deploy to production server

ideclon
7 Nov, 2023, 12:05

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.

Suiii
7 Nov, 2023, 12:05

Then , i wonder how people out there deploying to production serverr

Drake
8 Nov, 2023, 00:16

I would suggest creating migration scripts using a server SDK. You can take inspiration from existing DB migration systems

Suiii
8 Nov, 2023, 01:55

it should be generatable script by appwrite for standaradnizeness.

Suiii
8 Nov, 2023, 12:48

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.

Suiii
8 Nov, 2023, 12:48

@Steven

Suiii
8 Nov, 2023, 13:02

yes right. hope they will release in upcoming

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more