Heroku: Upgrade apps to the latest Stack
Heroku "Stack" is an OS image that is curated and maintained by Heroku. The image below should explain it pretty well:

Some of my old apps are on heroku-16 stack, and I want to upgrade them to heroku-18 that is based on Ubuntu 18.04.
Inspect your Heroku app stack
Upgrade to heroku-18
Set the stack, create an empty commit, git push to trigger a rebuild.
Make sure test it on a staging environment first 🙂.
You can also upgrade via the dashboard. Command line tools are more convenient for me as I have many apps hosted on Heroku.
Tip: You can use Parity to manage multiple heroku apps easily.
Seems like heroku-18 is the default stack for new apps, so if you just created one recently, you'd probably don't need to bother with this post 😁.
Clap to support the author, help others find it, and make your opinion count.