-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloud Code: Function Code #1668
Comments
Works for me, not sure if I understood the question correctly however.
Make sure you restart all your servers after changing any cloud code |
Ok, because you have 2 servers on 2 ports (1337/1338). |
Well, ofcourse you can not run two servers on the same port - there have been work to mount multiple ParseServers in one node app however. (Not sure if that will ever be a case) I simply run a nginx that speaks to multiple parse-server instances (that run on different ports) |
No, it's possible. example: app.use('/xxxx', apiProd); The only thing that does not work, that can not have the same Cloud Code. |
This is exactly what is not supported, it was not clear in your initial question you mounted them like that. It makes no sense running dev/test/prod in the very same server in any case. |
You're quite right, it does not make sense, but it was for the purpose of study. Ok, thanks |
You may use Server Fault for questions about managing Parse Server. For code-level and/or implementation-related questions or technical support, please refer to Stack Overflow. |
Hi,
I have a 3 parser-server running (dev/test/prod), and I try use the same file cloud code (main.js).
Can you confirm it's impossible use single Cloud Code file, for many servers ?
I obtain this error (via curl or PFCloud):
Error Domain=Parse Code=141 "Invalid function." UserInfo={code=141, temporary=0, error=Invalid function., NSLocalizedDescription=Invalid function.}
Works only, If I have duplicate cloud code file with other name.
Thanks
The text was updated successfully, but these errors were encountered: