302 words
2 minutes
Heroku Dyno Switcher - Keep Your Heroku App Alive Forever Without Dyno Hour Limits

🇹🇷 Heroku uygulamanızı dyno saatlerinden endişe duymadan sonsuza kadar canlı hale getirmek için küçük bir python projesi. Daha fazla dino saati almak için kredi kartı ekleme zahmetine girmenize gerek yok.

🇬🇧 A little python project to make your heroku app alive forever without being concerned about dyno hours. You do not need to bother adding a credit card to get more dyno hours.

Features#

  • Unlimited app switch
  • No need to enter app type (auto detecting web, worker)
  • Stops / starts all processes
  • Go to gist.github.com and create a secret gist
  • Filename: HerokuDynoSwitcher, Gist description: HerokuDynoSwitcher
  • Your config will be like:
    • Line 1: First heroku app name
    • Line 2: First heroku account api
    • Line 3: Second heroku app name
    • Line 4: Second heroku account api
    • Line 5: Newline
  • You can enter unlimited apps like that:
  • Now click Create Secret Gist button
  • Click Raw:
  • Copy your link. Mine is here:
  • https://gist.githubusercontent.com/HuzunluArtemis/48cf681365d3d27509b2d1daa19d/raw/c46e28fd5ac8bbf4945eea0abad6a0ffce4c13ae/HerokuDynoSwitcher
  • Edit this like that:
  • https://gist.githubusercontent.com/HuzunluArtemis/48cf681365d3d27509b2d1daa19d/raw/HerokuDynoSwitcher
  • Example, i deleted: c46e28fd5ac8bbf4945eea0abad6a0ffce4c13ae You will delete yours.
  • This step is important! Make you sure edited your config url! If you dont do that, changes you make in the config will not take effect.
  • We got config file link. Keep in safe and dont share anyone!

Deploy#

  • Go to repo: HuzunluArtemis/HerokuDynoSwitcher
  • Fork with this button:
  • Go to your Settings:
  • Go to your Secrets > Actions (Can be shown as Secrets) > New Repository Secret
  • Paste your config like this. Name: CONFIG_FILE_URL Value: Your edited config link:
  • Now go to your Actions tab:
  • Accept this warning:
  • Go to HuzunluArtemis HerokuDynoSwitcher > Enable workflow:
  • Done. Your apps will automatically change on the 1st and 15th of each month.
  • If you want to add new bot(s) edit your config file from gist.github.com. Dont edit anything from github.

Inspiration#

Lisans#

You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Heroku Dyno Switcher - Keep Your Heroku App Alive Forever Without Dyno Hour Limits
https://b1rdfr0st.github.io/posts/2022-07-30-herokudynoswitcher/
Author
fr0stb1rd
Published at
2022-07-30
License
CC BY-NC-SA 4.0