creativecommons / legaldb

CC Legal Database: curated repository of Case Law and Scholarship data from around the world in a Django based website.
https://LegalDB.CreativeCommons.org/
MIT License
46 stars 69 forks source link

[Feature] Upgrade to heroku-24 stack (from heroku-22 stack) #193

Closed TimidRobot closed 2 months ago

TimidRobot commented 2 months ago

Problem

Upgrade to heroku-24 stack (from heroku-22 stack)

Description

  1. Read directions: Upgrading to the Latest Stack | Heroku Dev Center
  2. Update stack
    heroku stack:set heroku-24
  3. Create an empty commit with no changes, to trigger a new build:
    git commit --allow-empty -m "Upgrading to heroku-24"
  4. Push app to create new release/deployment:
    • command:
      git push heroku main
    • output:
      Enumerating objects: 1, done.
      Counting objects: 100% (1/1), done.
      Writing objects: 100% (1/1), 893 bytes | 893.00 KiB/s, done.
      Total 1 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
      remote: Updated 60 paths from 0878773
      remote: Compressing source files... done.
      remote: Building source:
      remote: 
      remote: -----> Building on the Heroku-24 stack
      remote: -----> Using buildpack: heroku/python
      remote: -----> Python app detected
      remote: -----> Using Python version specified in Pipfile.lock
      remote: -----> Stack has changed from heroku-22 to heroku-24, clearing cache
      remote: -----> Installing python-3.12.6
      remote: -----> Installing pip 24.0, setuptools 70.3.0 and wheel 0.44.0
      remote: -----> Installing dependencies with Pipenv 2024.0.1
      remote:        Installing dependencies from Pipfile.lock (2b6da2)...
      remote: -----> Installing SQLite3
      remote: -----> $ python manage.py collectstatic --noinput
      remote:        394 static files copied to '/tmp/build_68172e87/staticfiles', 664 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 v63
      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.
      To https://git.heroku.com/fast-eyrie-10628.git
         cc4a97c..623f0d3  main -> mai
  5. Update internal systems documentation

Additional context