How to move cloud code from parse.com to heroku -


i have moved parse sever parse.com heroku. working fine except cloud code('cloud/main.js' file).

i have replaced "main.js" of parse.com "main.js" of parse server code , deployed on heroku, not working. getting following error when make request mobile app

{"code":1,"message":"internal server error."} (code: 1, version: x.xx.x) 

any idea?

note: i've followed following link migrating parse server

https://learnappmaking.com/how-to-migrate-parse-app-parse-server-heroku-mongolab/

migrating cloud code can range in difficulty depending on how involved code is. here's workflow validating code:

1) check can build heroku app locally right node version.

2) comment out of cloud code. want start introducing code in parts , make sure compiles each re-introduced function.

3) install node modules each service use. if use stripe/mailgun or other package, add them in package.json file , run npm install. include them in main.js file require('packagename').

4) cloud server uses express.js version 4.2 , parse.com runs express version 2.0 or 3.0 not 4.0. if use middlewear need change proper express 4.0 syntax/methodology.

5) there no support cloud jobs rename *.job functions *.define , comment can come them later. if did not use cloud jobs don't worry.

6) if did use cloud jobs, need setup heroku worker/scheduler run old *.job (now *.define) calls @ proper time intervals had.


Comments

  1. This professional hacker is absolutely reliable and I strongly recommend him for any type of hack you require. I know this because I have hired him severally for various hacks and he has never disappointed me nor any of my friends who have hired him too, he can help you with any of the following hacks:

    -Phone hacks (remotely)
    -Credit repair
    -Bitcoin recovery (any cryptocurrency)
    -Make money from home (USA only)
    -Social media hacks
    -Website hacks
    -Erase criminal records (USA & Canada only)
    -Grade change
    -funds recovery

    Email: onlineghosthacker247@ gmail .com

    ReplyDelete

Post a Comment

Popular posts from this blog

Redirect to a HTTPS version using .htaccess -

Unlimited choices in BASH case statement -

javascript - jQuery: Add class depending on URL in the best way -