Update Heroku-20 Stack
Update Heroku-20 Stack: A Guide to Upgrading Your Apps
As we approach the end of April, it's essential to address the deprecation warnings on our Heroku apps. The Heroku-20 stack, which is currently being used by 7 of our apps, is set to be end-of-life on April 30th, 2025. This means that from May 1st, 2025, builds will be disabled, and our apps will no longer receive security updates. In this article, we'll guide you through the process of upgrading your apps to a newer Heroku stack.
The Heroku-20 stack is a deprecated stack that was introduced in the past. It has been a reliable choice for many developers, but it's no longer supported by Heroku. The deprecation of the Heroku-20 stack is a result of Heroku's efforts to improve security and provide better support for newer stacks. As of April 30th, 2025, the Heroku-20 stack will be end-of-life, and no further security updates will be provided.
The following 7 apps are currently using the Heroku-20 stack and need to be upgraded:
mofo-redirector
mofo-cron-dev
andmofo-cron
network-pulse-api-staging
andnetwork-pulse-api-production
network-pulse-staging
andnetwork-pulse-production
(depending on whether we need to keep the public-facing Pulse site around after the end of April)
Upgrading to a newer Heroku stack provides several benefits, including:
- Improved security: Newer stacks receive regular security updates, ensuring that your apps are protected from the latest vulnerabilities.
- Better performance: Newer stacks are optimized for better performance, which can lead to faster page loads and improved user experience.
- Enhanced features: Newer stacks often come with new features and tools that can help you build and deploy your apps more efficiently.
Upgrading to a newer stack is a relatively straightforward process. Here are the steps you need to follow:
Step 1: Choose a Newer Stack
Heroku offers several newer stacks, including the Heroku-22 and Heroku-24 stacks. Choose a stack that meets your app's requirements and is compatible with your existing code.
Step 2: Update Your config.yml
File
Update your config.yml
file to use the newer stack. You can do this by changing the stack
value to the name of the newer stack you've chosen.
Step 3: Push Your Changes
Push your changes to Heroku using the git push heroku
command.
Step 4: Verify Your App
Verify that your app is working correctly by checking the logs and testing your app's functionality.
When upgrading to a newer stack, you may encounter some common issues. Here are some troubleshooting tips to help you resolve these issues:
- Error:
stack
value not found: This error occurs when thestack
value is not specified in theconfig.yml
file. To resolve this issue, update yourconfig.yml
file to include thestack
value. - Error:
build
failed: This error occurs when the build process fails. To resolve this issue, check the build logs for any errors and update your code accordingly. - Error:
app
not found: This error occurs when the app is not found on Heroku. To resolve this issue, check that the app is correctly configured and that theconfig.yml
file is updated to use the newer stack.
Upgrading to a newer Heroku stack is a crucial step in ensuring the security and performance of your apps. By following the steps outlined in this article, you can upgrade your apps to a newer stack and take advantage of the improved security, better performance, and enhanced features that come with it. Remember to choose a stack that meets your app's requirements and is compatible with your existing code. If you encounter any issues during the upgrade process, refer to the troubleshooting tips provided in this article to resolve them.
For more information on upgrading to a newer Heroku stack, refer to the following resources:
This issue is synchronized with the following Jira task:
- image-20250313-185121.png
Heroku-20 Stack Upgrade: Frequently Asked Questions (FAQs)
As we approach the end of April, it's essential to address the deprecation warnings on our Heroku apps. The Heroku-20 stack, which is currently being used by 7 of our apps, is set to be end-of-life on April 30th, 2025. In this article, we'll answer some frequently asked questions (FAQs) about upgrading to a newer Heroku stack.
A: The Heroku-20 stack is a deprecated stack that was introduced in the past. It has been a reliable choice for many developers, but it's no longer supported by Heroku. The deprecation of the Heroku-20 stack is a result of Heroku's efforts to improve security and provide better support for newer stacks.
A: If you don't upgrade to a newer stack, your app will no longer receive security updates, and builds will be disabled. This means that your app will be vulnerable to security risks and may not function correctly.
A: Heroku offers several newer stacks, including the Heroku-22 and Heroku-24 stacks. Choose a stack that meets your app's requirements and is compatible with your existing code.
A: Upgrading to a newer stack provides several benefits, including:
- Improved security: Newer stacks receive regular security updates, ensuring that your apps are protected from the latest vulnerabilities.
- Better performance: Newer stacks are optimized for better performance, which can lead to faster page loads and improved user experience.
- Enhanced features: Newer stacks often come with new features and tools that can help you build and deploy your apps more efficiently.
A: Upgrading to a newer stack is a relatively straightforward process. Here are the steps you need to follow:
Step 1: Choose a Newer Stack
Choose a stack that meets your app's requirements and is compatible with your existing code.
Step 2: Update Your config.yml
File
Update your config.yml
file to use the newer stack. You can do this by changing the stack
value to the name of the newer stack you've chosen.
Step 3: Push Your Changes
Push your changes to Heroku using the git push heroku
command.
Step 4: Verify Your App
Verify that your app is working correctly by checking the logs and testing your app's functionality.
A: Some common issues you may encounter during the upgrade process include:
- Error:
stack
value not found: This error occurs when thestack
value is not specified in theconfig.yml
file. To resolve this issue, update yourconfig.yml
file to include thestack
value. - Error:
build
failed: This error occurs when the build process fails. To resolve this issue, check the build logs for any errors and update your code accordingly. - Error:
app
not found: This error occurs when the app is not found on Heroku. To resolve this issue, check that the app is correctly configured and that theconfig.yml
file is updated to use the newer stack.
A: For more information on upgrading to a newer Heroku stack, refer to the following resources:
Upgrading to a newer Heroku stack is a crucial step in ensuring the security and performance of your apps. By following the steps outlined in this article and referring to the additional resources provided, you can upgrade your apps to a newer stack and take advantage of the improved security, better performance, and enhanced features that come with it.
This issue is synchronized with the following Jira task: