-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
type:questionSupport or code-level questionSupport or code-level question
Description
I have set up parse-server on Heroku, but I am having trouble with the cloud code. I used the parse-server-example, and replaced the contents of main.js with my own:
console.log('##### TEST');
Parse.Cloud.afterSave('SomeClass', function(request) {
console.log('##### INSIDE AFTER SAVE');
});
And this is my parse-server setup:
var api = new ParseServer({
databaseURI: 'mongodb://...',
cloud: __dirname + '/cloud/main.js',
appId: '...',
masterKey: '...',
dotNetKey: '...',
clientKey: '...',
fileKey: '...',
serverURL: 'https://<appname>.herokuapp.com/parse',
push: {
ios: [
{
pfx: '....p12',
bundleId: '<bundle-id>',
production: false
},
{
pfx: '....p12',
bundleId: '<bundle-id>',
production: true
}
]
}
});
When i run heroku logs
in the terminal i can see the "### TEST" getting printed after start up. But when I save an object of the specified type, nothing is printed in the logs, so it seems that the beforeSave and afterSave isn`t getting called at all.
Metadata
Metadata
Assignees
Labels
type:questionSupport or code-level questionSupport or code-level question