You can definitely run your script as a Cron job on heroku.
Step 1 - Build the application using the mentioned buildpack:
heroku apps:create myapp --stack cedar --buildpack http:
Step 2 - add the scheduler and log add-ons:
heroku addons:add logentries heroku addons:add scheduler
Step 3 - open the scheduler:
heroku addons:open scheduler
or use the toolbar, click "My Applications"> "General Information"> "Addons"> "Scheduler"
Step 4 - Install your cronjob:
./vendor/casperjs/bin/casperjs myCasperScript.js
and select the frequency you want to run the script.
Hope this helps!
source share