testing heroku cronjobs
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Procfile
README.md
main.js
package.json
web.js

README.md

test-heroku-cron

Testing heroku cronjobs

Cron Setup

  1. Create the app

        heroku apps:create test-heroku-cron
  2. Connect the git repo through the Heroku GUI

  3. Install the scheduler add-on

        heroku addons:create scheduler:standard --app test-heroku-cron
  4. Open the Scheduler GUI

        heroku addons:open scheduler
  5. Create a new job with the following command npm run worker

  6. Check the task logs

        heroku logs --app test-heroku-cron --ps scheduler