0

I have setup a nodeJS project and I'm trying to setup a heroku scheduled job. I am using the Heroku scheduler and I have setup a task in the scheduler panel with 'node myJob.js'. The thing is, everything in that file (myJob.js) is out of the sails App context. I cannot use anything from my app (for example the waterline ORM, the open mongo connection, a service, nothing!). Am I doomed to write the scheduled job in old fashioned javascript or am I missing something?

Michael Kork.
  • 333
  • 3
  • 18

0 Answers0