This is an example of a one-off task that can be run on cloud.gov. More on how to do this can be found in the docs.
To run this app locally, use npm install and npm start. To deploy to cloud.gov, use the instructions below:
~$ cf push -f manifest.yml --health-check-type none --no-routeWhen done, wait a few minutes for some log messages to show up, then check the logs:
~$ cf logs --recent task-runner
Note, when done with the example, make sure you delete your app:
~$ cf delete task-runner