Back

[SOLVED] Migrate to Cloud

  • 0
  • Tools
Binyamin
31 Mar, 2023, 02:30

For waht I've seen

TL;DR
User is thanking Steven for assistance with migrating to the cloud. They mention an issue with the appwrite.json file and creating a bug report. They also mention an issue with the CLI and missing databases during initialization. They ask about the limit for initializing data and how to migrate documents within a collection. They mention that the deploy collection does not deploy documents. The thread is eventually marked as solved, with thanks to Steven and another user. Solution: User is advised to pull data from the old instance and use it to import into the new instance. The user is also provided with a link for migrating users with the same password.
Said H
31 Mar, 2023, 02:30

ok

Said H
31 Mar, 2023, 02:30

i will wait for Steven

Said H
31 Mar, 2023, 02:30

thank you so much for your help @Binyamin

Binyamin
31 Mar, 2023, 02:31

Sure 😀

Drake
31 Mar, 2023, 02:34

You want to migrate your users so they can log in with the same password in the new environment?

Said H
31 Mar, 2023, 02:56

thats right

Said H
31 Mar, 2023, 02:56

fulll migration

Drake
31 Mar, 2023, 02:58

You can pull data from the old instance and then use this to import into new instance: https://appwrite.io/docs/server/users?sdk=nodejs-default#usersCreateArgon2User

Said H
31 Mar, 2023, 02:58

ok

Said H
31 Mar, 2023, 02:58

i will work on it

Said H
31 Mar, 2023, 02:59

thank you so much @Steven and @Binyamin

Said H
31 Mar, 2023, 02:59

[SOLVED] Migrate to Cloud

Said H
31 Mar, 2023, 03:44

sorry one more question. I noticed that deploy collection does not deploy documents inside

Said H
31 Mar, 2023, 03:44

any idea how i can migrate all the docs inside the collection too?

Said H
31 Mar, 2023, 03:44

or, i can only do it using the SDK create_doc method?

Said H
31 Mar, 2023, 03:47

ok, thanks a lot Steven

Said H
31 Mar, 2023, 04:08

Hey sorry again. I noticed that "appwrite init collection" does not retrieve all databases from the source. For example, i have 2 database, each with 2 collections. Both were detected as fetched during the init. But inside appwrite.json, there is only 1 database with 2 collection. the other database is not present. is there a limit of the amount of data that i can init?

Said H
31 Mar, 2023, 04:08

i retried this 2x and the outcome is the same

Drake
31 Mar, 2023, 04:30

Womp. Looks like there's a bug with the CLI. Would you be able to create an issue?

Drake
31 Mar, 2023, 04:31

The bug is we're only matching on collection id rather than database id and collection id: https://github.com/appwrite/sdk-for-cli/blob/79876b66f5d641d47d361daad0ec702dc1cbf587/lib/config.js#L159

Said H
31 Mar, 2023, 04:58

ok, i willl create an issue

Said H
31 Mar, 2023, 04:59

thanks a lot Steven

Drake
31 Mar, 2023, 05:00

For now, you can manually update the appwrite.json

Said H
31 Mar, 2023, 05:02

ok. Thanks so much Steven

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