Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work #1

Open
phortx opened this issue Jun 28, 2022 · 1 comment
Open

Doesn't work #1

phortx opened this issue Jun 28, 2022 · 1 comment

Comments

@phortx
Copy link

phortx commented Jun 28, 2022

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:

$ 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... └─ [email protected] plugin heroku-cron... info All dependenciesInstalling plugin heroku-cron... ├─ [email protected] plugin heroku-cron... ├─ [email protected] plugin heroku-cron... ├─ [email protected] plugin heroku-cron... ├─ [email protected] plugin heroku-cron... ├─ [email protected] plugin heroku-cron... ├─ [email protected] plugin heroku-cron... ├─ [email protected] plugin heroku-cron... ├─ [email protected] plugin heroku-cron... ├─ [email protected] plugin heroku-cron... ├─ [email protected] plugin heroku-cron... ├─ [email protected] plugin heroku-cron... ├─ [email protected] plugin heroku-cron... ├─ [email protected] plugin heroku-cron... ├─ [email protected] plugin heroku-cron... └─ [email protected] plugin heroku-cron... Done in 10.31s.Installing plugin heroku-cron... installed v1.0.6
warning heroku-cron > @heroku-cli/command > [email protected]: 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?

@motymichaely
Copy link
Member

@phortx - Sorry for the delay 🙈. Is it still an issue? I wasn't able to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants