I'm trying to setup this plugin as described. I've set the Heroku API Key as environment config variable (and double checked that).
Then:
$ heroku buildpacks:add crazyantlabs/heroku-buildpack-cli-plugin-cron -a example-app
Then I deployed. What's strange is that heroku cron displayed a usage message while running the buildpack, couldn't find out whether this is normal or an indicator that something went wrong:
== Heroku CLI installation done
Installing plugin heroku-cron... yarn add v1.22.0
Installing plugin heroku-cron... info No lockfile found.Installing plugin heroku-cron... [1/4] Resolving packages...Installing plugin heroku-cron... [2/4] Fetching packages...Installing plugin heroku-cron... [3/4] Linking dependencies...Installing plugin heroku-cron... [4/4] Building fresh packages...Installing plugin heroku-cron... success Saved lockfile.Installing plugin heroku-cron... success Saved 162 new dependencies.Installing plugin heroku-cron... info Direct dependenciesInstalling plugin heroku-cron... └─ heroku-cron@1.0.6Installing plugin heroku-cron... info All dependenciesInstalling plugin heroku-cron... ├─ array-union@2.1.0Installing plugin heroku-cron... ├─ color-convert@2.0.1Installing plugin heroku-cron... ├─ date-fns@1.30.1Installing plugin heroku-cron... ├─ fast-glob@3.2.11Installing plugin heroku-cron... ├─ heroku-client@3.1.0Installing plugin heroku-cron... ├─ is-extglob@2.1.1Installing plugin heroku-cron... ├─ json-parse-better-errors@1.0.2Installing plugin heroku-cron... ├─ luxon@2.4.0Installing plugin heroku-cron... ├─ natural-orderby@2.0.3Installing plugin heroku-cron... ├─ original@1.0.2Installing plugin heroku-cron... ├─ querystringify@2.2.0Installing plugin heroku-cron... ├─ rxjs@6.6.7Installing plugin heroku-cron... ├─ sprintf-js@1.0.3Installing plugin heroku-cron... ├─ through@2.3.8Installing plugin heroku-cron... └─ yarn@1.22.19Installing plugin heroku-cron... Done in 10.31s.Installing plugin heroku-cron... installed v1.0.6
warning heroku-cron > @heroku-cli/command > cli-ux@4.9.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
get information about Cron To Go
USAGE
$ heroku cron
OPTIONS
-a, --app=app (required) app to run command against
-r, --remote=remote git remote of app to use
--json return the results as JSON
DESCRIPTION
Read more about this feature at https://devcenter.heroku.com/articles/crontogo
EXAMPLES
$ heroku cron -a your-app
$ heroku cron --app your-app --json
COMMANDS
cron:jobs list jobs on Cron To Go
=== Heroku CLI plugin for Cron To Go installation done
However, after that:
$ heroku run -a example-app 'heroku cron'
› Warning: cron is not a heroku command.
Heroku Stack is heroku-20. Any idea what went wrong?
Hi,
I'm trying to setup this plugin as described. I've set the Heroku API Key as environment config variable (and double checked that).
Then:
Then I deployed. What's strange is that heroku cron displayed a usage message while running the buildpack, couldn't find out whether this is normal or an indicator that something went wrong:
However, after that:
Heroku Stack is heroku-20. Any idea what went wrong?