I know that OpenShift has a cron cartridge which we can use to perform tasks such as clean ups, run backups,...
In my case my Node.js application is a worker and on each run it updates my databases based on external resources.
My plan was to use OpenShift cron to run the main entry point of my application on every job run, e.g. running following command :
node databaseUpdater.js
I found another SO question and answer on how to exec a Node.js, but my issue is that I don't know what is the full path of OpenShift's node, or even if they would allow me to do such thing?
I tried using node databaseUpdater.js
and hoping to be lucky and OpenShift automagically run my app, but I was wrong!
Any help how to get the full path to node or any better way to overcome this issue on OpenShift?