Search code examples
herokuparse-platformparse-cloud-codeparse-server

How to use cloud code on parse server deployed on heroku?


I'm wondering how I can implement cloud code on a parse server I have deployed on heroku and MongoDB (the app is not connected to parse). I know there is a Command Line install tool to deploy cloud code with heroku, but doing that I have to create a new parse and heroku app instead of just adding it to the parse server I have deployed. How can I add this functions


Solution

  • I was having the same issue here is the way to put the latest code from 'cloud/main.js' to heroku from terminal

     $ git add ./cloud/main.js
     $ git commit -m "Changed configuration values"
     $ git push heroku master
    

    Now call your newly uploaded function from the app they will now work.