As Parse.com has been retired from its service, Zikto migrated from Parse.com to our Parse Server in Jan 2017.
We initially followed the parse-server-example guide and at the stage we needed to deploy a new firmware update to our end-users after couple of months, My boss asked me to migrate our Cloud Code (pushing a new version of firmware) to our parse server.
At then, I have struggled hours to add the cloud code and found out that there is no background jobs functionality in parse server, ending up with manually writing mongodb script to manually to deploy the firmware update :
Jobs would upload, never completing the scheduled jobs. Later I found found a elegant solution from a JS developer forum.
Simiply put the 3 pieces of JS scripts(CloudCode.js, Cron.js, Job.js) and append the following code :
and add ‘cron’ to package.json as dependencies.