Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to upgrade a Heroku app's buildpack after the app has been created?

Tags:

node.js

heroku

I have an existing node.js app on heroku and I want to upgrade the node.js version by supplying a 0.6.7 buildpack.

Is it possible to update the buildpack a Heroku app is assigned?

If not, what is the suggested path for upgrading the builpack an app uses?

If I have to deploy a new app, how do I made sure the addons don't die?

Thanks,

Matt

like image 378
MateodelNorte Avatar asked Feb 01 '12 00:02

MateodelNorte


People also ask

How do I upgrade my Heroku?

To upgrade via the Heroku Dashboard, navigate to your app settings page and click the Upgrade Stack button. Confirm that you want to upgrade, which will set the stack to the latest version.

How do I update my Heroku to latest version?

If you installed the CLI with apt , you must use sudo apt-get update && sudo apt-get upgrade heroku . If you installed the CLI with npm or yarn , you must use npm upgrade -g heroku or yarn global upgrade heroku .


1 Answers

This should be possible if you have a public git repo (e.g. a fork of https://github.com/heroku/heroku-buildpack-nodejs).

To update the buildpack you're using, set the BUILDPACK_URL config using the Heroku CLI:

heroku config:add BUILDPACK_URL=git://github.com/heroku/heroku-buildpack-nodejs.git

(Note: replace the git URL with the URL of your buildpack.

like image 157
Naaman Newbold Avatar answered Oct 17 '22 07:10

Naaman Newbold