I would like to use the first function sayHello
in my jobs.js
in parse-server-example
.
In my jobs.js I have this:
var Parse = require('parse/node');
Parse.initialize('xx', 'xx','xx');
Parse.serverURL = 'xx';
Parse.Cloud.useMasterKey();
function sayHello() {
console.log('Hello');
}
I tried to run it with this terminal line command:
heroku run sayHello -a myAppName
returns:
Running sayHello on myAppName... up, run.6148
bash: sayHello: command not found