Some questions about the migration (v1) to self host

Hey guys,

My questions:

  1. Is the Redis setup (in the parse-server-migration repo) to rate limit only Moralis web3api calls? Or does it actually work for all of the parse cloud functions?

  2. In the ā€œself hostedā€ migration video, you guys never mention the migration of cloud functions. Do you have a script we can use to merge them all into main.ts? Do we have to rewrite them as modules now?

Thanks In Advance!

In current moralis server redis is used only to rate limit web3api calls.

From what I know there is a file named cloud.js where you can add the code associated to cloud.

1 Like

Hey @cryptokid thanks for the reply! (as always)

Yes there is a ā€œmain.tsā€ if that’s what you mean, and I could copy/paste all my cloud files to that one and it would work.

The problem is, I got +50 files to copy/paste from. Because before self hosting we used the IDE Setup method and we could have +50 files in different folders and it would upload them all and merge them into 1 file (main.ts).

Just wanted to know if it’s possible to keep doing that somehow or if we need to find a new way now.

Previously, there was a library in moralis admin cli that was doing that merge to generate a singe file for cloud code before uploading it. You can look in the source code of moralis admin cli to see how it is done.

1 Like