A stack is a complete deployment environment including the base operating system, the language runtime and associated libraries. As a result, different stacks support different runtime environments.
The Celadon Cedar-14 stack is the latest version of the Heroku Cedar stack which is now Heroku’s default runtime stack (Ubuntu 14.04) and is a flexible, polyglot environment with robust introspection and erosion-resistance capabilities.
The legacy Cedar stack has been deprecated and will reach its end-of-life on November 4, 2015. Customers are strongly advised to upgrade to Cedar-14 as soon as possible to ensure uninterrupted service of their applications.
Before starting migration to cedar-14 you should have below things as describe below:
- Heroku Toolbelt should be installed on your machine.
- Heroku account credentials
Steps of migration to the Celadon Cedar-14 Stack
Below are the steps to migrate the application to the Celadon Cedar-14 Stack:
Step 1: Login into your heroku account using the email address and password that we have used during setting up our Heroku account.
Step 2: Verify the application that you want to migrate is on deprecated stack or not as shown in screenshot.
As in screenshot you can clearly see application Stack is cedar which is deprecated so we can migrate this application to latest cedar-14 stack.
Step 3: Now you can set stack on the production app to Cedar-14 as shown in below screenshot.
This does not immediately change the runtime stack of the app, but the next release created will be deployed on Cedar-14. If you have no changes to your source pending release, you can create an empty commit with no changes to ensure a new build as shown in next step.
Step 4: Clone the code on your machine as shown in below screenshot & perform empty commit and push the code on heroku which is essential step so that heroku can pick the changed code and migrate the application to new stack that you have set in Step 3.
If you have no changes to your source pending release, you can create an empty commit with no changes to ensure a new build as shown in below screenshot:
Then push the code to heroku as shown in below screenshot:
Step 5: Now verify the application is migrated to new stack successfully as shown in below screenshot:
Now production app is now running on Cedar-14, and you should verify that everything is working as expected.
The migration is now complete, enjoy 🙂