dhyegocalota / visa-appointment-tracker

🇺🇸 Track vacant scheduling dates for US Visa interviews and get notified as soon as they become available
20 stars 4 forks source link

Error Scaling Dynos #10

Closed giovanibrmiguel closed 1 year ago

giovanibrmiguel commented 1 year ago

Hi, @dhyegocalota.

I've been receiving an error message when deploying the app for the first time in Heroku:

"Error scaling dynos: Cannot use the following dyno types in the same app: Free and Hobby"

I believe this might be related to the merges from yesterday, as we did not have this issue before, but I'm not sure which change might have resulted in this. Maybe could be related to the new feature of debug mode?

image
dhyegocalota commented 1 year ago

Thank you for the report. Seems like you tried to deploy using the Heroku button, right?

The issue seems like the heroku/nodejs buildpack has the web as the default dyno process but this app declares the a dyno called cron instead.

The buildpack's default dyno was using the free plan tier while the app was setting it to hobby. The rationale behind this app decision to use the hobby plan tier instead is because Heroku is going to disable support for free tiers on November 28th.

We have a few of approaches to fix this error:

  1. Set the app's dyno tier to free but it will work only until November 28th
  2. Disable the buildpack's default dyno to avoid conflicts but requires a deeper exploration
  3. Disable deployments using the Heroku button

Given the limited resources available, I implemented the first approach. It means that after November 28th, probably the Heroku deploy button will stop working anyways.