mars3142
mars3142

Reputation: 2561

updated Cloud Code (main.js) - now my project is unusable

It seems, that some code in main.js breaks my project at parse.com. But I can't upload an empty main.js file, because

parse deploy

said

Unable to authenticate app. Please make sure your applicationId and masterKey in "config/global.json" is correct

Does someone have an idea how to delete all Cloud Code logic (code, cronjobs, etc.)?

Upvotes: 1

Views: 1119

Answers (2)

Nick Wood
Nick Wood

Reputation: 680

Found this on Google Groups... obviously only works if your keys aren't incorrect ;)

https://groups.google.com/forum/#!topic/parse-developers/DmOvTxWJAGI

So I updated the command line tool... now all working again

https://parse.com/docs/js/guide#command-line

Upvotes: 4

Dehli
Dehli

Reputation: 5960

Go to the config folder inside of your CloudCode. Open up global.json in a text editor. Replace the applicationId and masterKey with the keys found on Parse.com in your settings page. https://www.parse.com/apps/YOURAPPNAME/edit#app_keys

After this, you can parse deploy an empty file.

Upvotes: 0

Related Questions