dwyl / learn-heroku

:checkered_flag: Learn how to deploy your web application to Heroku from scratch step-by-step in 7 minutes!
153 stars 395 forks source link

cedar-14 stack end-of life window #43

Open nelsonic opened 4 years ago

nelsonic commented 4 years ago

Each time I log into heroku I get the following warning: image

Todo

nelsonic commented 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.
nelsonic commented 4 years ago

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. 🙄

nelsonic commented 4 years ago

One of the Apps in particular: https://dashboard.heroku.com/apps/ageuk-companion-app/deploy/github image

https://github.com/ageuk/companion-app image

The owner of the GitHub repository has DELETED the repo: https://github.com/ageuk image 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!

book-burning

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

image

App still works: https://ageuk-companion-app.herokuapp.com image

Sadly I don't have any login details to test it. Anyway. Super lame that someone deleted the repo. 🤷‍♂️

Back to updating Heroku Apps.