Open nelsonic opened 4 years ago
These are the suggested commands:
$ heroku plugins:install apps-table
$ heroku apps:table --filter="STACK=cedar-14"
That outputs a list of apps that are using the cedar-14
stack:
App Name Stack Team
arana cedar-14 null
atimer cedar-14 null
etc.
Run the following command to update the stack for a specific app e.g: arana
:
heroku stack:set heroku-18 -a arana
Output:
Stack set. Next release on ⬢ arana will use heroku-18.
Run git push heroku master to create a new release on ⬢ arana.
Created this quick python script to automate the update process:
# update the stack of your heroku apps. github.com/dwyl/learn-heroku/issues/43
import os
os.system("echo Fetching List of Apps from Heroku")
os.system('heroku apps:table --filter="STACK=cedar-14" >> apps.txt')
file = open('apps.txt', 'r')
Lines = file.readlines()
# Strips the newline character
for line in Lines:
parts = line.split(" ")
app = parts[0].strip()
print("updating: " + app)
os.system("heroku stack:set heroku-18 -a " + app)
import sys
sys.exit()
Sadly, the Heroku UI says that the apps need to be re-deployed before the warning will disappear. 🙄
One of the Apps in particular: https://dashboard.heroku.com/apps/ageuk-companion-app/deploy/github
https://github.com/ageuk/companion-app
The owner of the GitHub repository has DELETED
the repo: https://github.com/ageuk
Who deletes work from GitHub?! 😕
Deleting a repo that someone has worked hundreds of hours on is robbing them of their efforts!
It's akin to book burning: https://en.wikipedia.org/wiki/Book_burning mindless/thoughless!
Real people worked really hard to build that App. Some genius deleted it for no good reason. 🤦
Only someone who does not code (or appreciate effort) would ever delete
the work of those who do.
Making an archival copy from the Heroku App: https://github.com/dwyl/ageuk-companion-app
cd ~/
mkdir ageuk-companion-app && cd ageuk-companion-app
git init
heroku git:remote -a ageuk-companion-app
git pull heroku master
git remote add origin git@github.com:dwyl/ageuk-companion-app.git
git push -u origin master
App still works: https://ageuk-companion-app.herokuapp.com
Sadly I don't have any login details to test it. Anyway. Super lame that someone deleted the repo. 🤷♂️
Back to updating Heroku Apps.
Each time I log into heroku I get the following warning:![image](https://user-images.githubusercontent.com/194400/78992921-628ac980-7b34-11ea-927e-d37b29ab7f7a.png)
Todo