# Update the Heroku stack
AAPS users: mind the [compatibility matrix](../nightscout/close_loop.md#aaps)!
It is good practice to maintain your Heroku stack up to date. Either when you receive an email from Heroku or when you [update your Nightscout site](/update/update) (which is also a good habit).
- Log in Heroku [https://id.heroku.com/login](https://id.heroku.com/login)

- Select your app
- Click `Settings`
- If present select `Upgrade Stack`
- `Confirm` the upgrade
- Now you need to deploy to upgrade the stack
- Click on `Deploy`
- Scroll down to the bottom of the page, select the `master` branch and click `Deploy Branch` ```{hint} If you can't select the `master` branch or `Deploy Branch` doesn't do anything [reconnect GitHub](heroku-nogit). ```
- Build will start and information will scroll in the log window. Do not leave the page, do not interfere and wait for completion. It might take more than 10 minutes. Interrupting the process will lead to a broken site and you'll need to restart deployment.
- Wait until the deploy process completes and click `View` (if nothing happens click `Manage App` then upper right `Open App`)
You have upgraded your Heroku stack.