Skip to content
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 live reload #1019

Closed
rooswelt opened this issue Mar 14, 2016 · 8 comments
Closed

Cloud code live reload #1019

rooswelt opened this issue Mar 14, 2016 · 8 comments

Comments

@rooswelt
Copy link

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!

Is there a way to live reload cloud code without restarting entire parse server?

@flovilmart
Copy link
Contributor

There is no way at the moment. Please submit a pull request if you feel that's a necessary feature

@MarsVard
Copy link

Anybody working on this?

@oallouch
Copy link
Contributor

+1

@MarsVard
Copy link

@flovilmart can this issue be reopend so somebody with more knowledge about it can maybe see and fix it? or at least give some tips on how to fix this.

@flovilmart
Copy link
Contributor

I'm not sure there is an actual fix without refactoring completely the way cloud code is run, by either forking processes or run it inside it's own VM. After that you'd have to implement a safe way to upload your cloud code files to the server(s) and reload the newly updated scripts from there.

You can also use Parse Cloud Express and run cloud code on a separate server.

@MarsVard
Copy link

@flovilmart Thanks for the clarification! I'll check out Parse Cloud Express.

How come reloading works in parse.com? does parse.com use a seperate server for Cloud Code?

@flovilmart
Copy link
Contributor

Parse.com was written in go and was spawning a V8 for each cloud code request.

@difelice
Copy link

Just run server with nodemon "watching" the cloud folder:

npx nodemon -w ./cloud parse-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants