[Feature] Upgrade production to heroku-22
TimidRobot opened this issue · 1 comments
TimidRobot commented
Problem
Production is currently on heroku-20
#132 (comment) excerpt:
remote: This app is using the Heroku-20 stack, however a newer stack is available.
remote: To upgrade to Heroku-22, see:
remote: https://devcenter.heroku.com/articles/upgrading-to-the-latest-stack
Description
Upgrade from heroku-20
to heroku-22
.
Alternatives
Wait.
Additional context
TimidRobot commented
Given the very simple nature of this app, I performed a minimal upgrade (no testing):
- Configure app's Heroku stack
heroku stack:set heroku-22
Setting stack to heroku-22... done You will need to redeploy ⬢ fast-eyrie-10628 for the change to take effect. Run git push heroku main to trigger a new build on ⬢ fast-eyrie-10628.
- Create an empty commit to trigger a new build
git commit --allow-empty -m "Upgrading to heroku-22"
[main 4b88408] Upgrading to heroku-2
- Ensure origin is in sync
git push
Enumerating objects: 1, done. Counting objects: 100% (1/1), done. Writing objects: 100% (1/1), 894 bytes | 894.00 KiB/s, done. Total 1 (delta 0), reused 0 (delta 0), pack-reused 0 To github.com:creativecommons/legaldb.git aed3adf..4b88408 main -> main
- Push to production to create a new release
git push heroku main
Enumerating objects: 1, done. Counting objects: 100% (1/1), done. Writing objects: 100% (1/1), 894 bytes | 894.00 KiB/s, done. Total 1 (delta 0), reused 0 (delta 0), pack-reused 0 remote: Compressing source files... done. remote: Building source: remote: remote: -----> Building on the Heroku-22 stack remote: -----> Using buildpack: heroku/python remote: -----> Python app detected remote: -----> Using Python version specified in Pipfile.lock remote: -----> Stack has changed from heroku-20 to heroku-22, clearing cache remote: cp: cannot stat '/tmp/build_1b7978fb/requirements.txt': No such file or directory remote: -----> Installing python-3.10.6 remote: -----> Installing pip 22.1.2, setuptools 60.10.0 and wheel 0.37.1 remote: -----> Installing dependencies with Pipenv 2020.11.15 remote: Installing dependencies from Pipfile.lock (4e162e)... remote: -----> Installing SQLite3 remote: -----> $ python manage.py collectstatic --noinput remote: 397 static files copied to '/tmp/build_1b7978fb/staticfiles', 705 post-processed. remote: remote: -----> Discovering process types remote: Procfile declares types -> release, web remote: remote: -----> Compressing... remote: Done: 59.7M remote: -----> Launching... remote: ! Release command declared: this new release will not be available until the command succeeds. remote: Released v31 remote: https://fast-eyrie-10628.herokuapp.com/ deployed to Heroku remote: remote: Verifying deploy... done. remote: Running release command... remote: remote: Operations to perform: remote: Apply all migrations: admin, auth, contenttypes, legal_db, sessions, taggit remote: Running migrations: remote: No migrations to apply. remote: Waiting for release.... done. To https://git.heroku.com/fast-eyrie-10628.git aed3adf..4b88408 main -> main
- Manual Q&A
- ✅ looks good