I am using Heroku toolbelt:
>heroku create app1
(root application)>heroku create app2
(from the same root application)I wanted to add variable: heroku config:set MYVAR=value
Then I get the error:
Setting MYVAR and restarting app1... !
! Couldn't find that app.
How can I switch to the new app (app2) and remove app1 completely?
If you don't have a copy of the app's code locally, you can clone it from Heroku by running the CLI command heroku git:clone -a <myapp> . Alternatively, if your source code is stored in a service like Github (highly recommended), you could also clone it from there.
heroku apps:destroy --app app1 --confirm app1
heroku git:remote -a app2
You can change the app from app1 to app2 by using
heroku git:remote -a app2
Try destroying the old app:
heroku apps:destroy app1
Note that this will permanently and irrevocably destroy app1
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With