'Heroku marked free databases for deletion', Signing up for Eco and getting your Website back - heroku

Hi this is more of a general knowledge share because I was faced with the issue of retrieving my old websites that I had on Heroku Hobby-Dev.
I was having trouble trying to restore the websites that had been wiped by heroku of all the hobby dev applications I made.
If anyone did what I've done and purchased the Dyno Eco Pack after having received the Database Deletion Alert on their Heroku screen. Once you finish paying for it, what you must do is then go into the command line and type in the following -
heroku ps:scale web=<desired # of dynos>: -a
ex) heroku ps:scale web=1:Eco -a myApp
What the CLI will prompt you to do is sign in by giving a warning sign saying
{Scaling dynos... !
! Invalid credentials provided.
...
heroku: Press any key to open up the browser to login or q to exit: }
press any key and then you will be prompted to login on your browser on Heroku's site. Once you've signed on, the CLI should have a message saying: Scaling dynos... done, now running web at 1:Eco
Then you're all set, you can go back to the Heroku dashboard and launch the application and you'll have it restored.

Related

"Error: unable to verify the first certificate" [Heroku]

Can someone help me out with this error. I am trying to login to my heroku account with heroku toolbelt but i keep getting this error.Any idea why ?
Try running 'heroku update' in terminal
once it is updated then try login in to your heroku account
In my case, an adblocking application filtered all my traffic. Even that of the console. To do this, it injects a certificate that the heroku app cannot verify. This is the right approach to prevent API traffic sniffing.
Once I prevented the filtering, everything worked fine again.
fix this is simply use the fullkey.pem when heroku asks for a cert

Delete one of the two app on the heroku account

I'm new to Heroku. I've mistakenly created second app on my account and now I can't execute heroku open command to see my app running on the server. I'm posting the screen of the error message. I need only the one named guarded-wildwood-67162. How can I delete other app - shielded-sea-53572?
To permanently destroy a Heroku app you can use heroku apps:destroy --app <app-name> or use the Heroku web interface. Note that this doesn't just disconnect the app; it completely destroys it.

Unable to disconnect Heroku app from GitHub Account

We're using Heroku Pipeline and GitHub integration:
Staging app was manually deployed with git push heroku master.
Production app was automatically deployed upon commit to Master on GitHub repo.
I want to change this workflow so that:
Staging app is automatically deployed upon commit to Master on GitHub repo.
Production app is the result of a Staging app being promoted.
Thus, I need to unlink the Production App from the GitHub Account/Repo. The instructions are here:
GitHub Integration | Heroku Dev Center
But, in my case, there's no "Disconnect" button:
How can I disconnect it?
Go to Manage Account: https://dashboard.heroku.com/account/applications
Click Applications tab
In Third-party Services: these are 2 options:
Re-authorize or Revoke access
click Revoke access
Remember to clear cookie or use incognito mode to re-login by another Github account
Go to Github and under your personal settings revoke access BUT THEN go back to Heroku, logout, login and you will see a warning from Heroku on the dashboard saying that access has been revoked from your GitHub account.
Click on Disconnect on that app.
Then reauthorize the others.
You can also revoke access of heroku dashboard from your github account.
Login Github
Go To Settings
Applications
revoke the connected heroku dashborad that will automatically disconnect your heroku from your github account.
This was a bug in Heroku's Dashboard.
Whenever the app was part of a Pipeline, it was impossible to disconnect it from the original github deploy hook.
Now the "disconnect" button is also available within pipelined apps.

Logging into Heroku Fails - shell access

O.k. so maybe I'm missing something basic here, but when I run heroku login I get the usual email and password prompt.
At this point I would assume I'm logged into the Heroku dino just a I would using my local box.
Instead I get a message telling me I'm logged in, but I'm still on my local box.
Is there really no shell access for Heroku apps?
You can open a dynamic session with this command:
heroku run bash
However, please be aware that Heroku runs applications on dynos: https://devcenter.heroku.com/articles/dynos
No, you can't directly access the Heroku dynos. You can run commands through the CLI, such as getting logs, adding add-ins, etc.
Logging in through the CLI, as you have done, is simply setting your credentials for Heroku locally. They are subsequently used for running commands so you don't always have to reauthenticate.
heroku login doesn't open a new terminal session like ssh would. Instead, it just remembers your profile so that when you call heroku with a different command (like heroku create to create a new app) you won't be prompted for email and password again.
You can also push your code to the app with git push heroku master once you are logged in.
You can do some hackery (like using this plugin) to ssh into your dyno, but that's not the way heroku is supposed to work. The idea behind heroku is that you just push your code there and it manages everything else for you.

Connect to a Heroku app after directory (and all other data) deleted on local machine

I lost all the data on my localmachine (Macbook Pro) and, to make matters worse, the repo for a Rails app hosted on Heroku has also been deleted on github. Since I lost all the data on my localmachine, whatever security keys I had installed have also been deleted so if I try to connect to Heroku it won't even recognize me. What can I do in this situation to download the app and export the database?
Are you still able to log into heroku.com? If so, you should be able to set up the heroku CLI again with a new public key. Then you should be able to use heroku git:clone APP to get the code from heroku.
With your database, there should be options for managing it on heroku.com or via the heroku CLI (e.g. heroku pg:pull if you're using postgres).

Resources