oeplatform icon indicating copy to clipboard operation
oeplatform copied to clipboard

Create a server POV release procedure

Open jh-RLI opened this issue 2 years ago • 7 comments

Description of the issue

Currently, we have documented on GitHub how to do the release. We are missing information on how to do a release on the server and actually deploy and run a new version.

Ideas of solution

  • [ ] add markdown documentation and describe the reproducible steps.
  • [ ] Create release issue template and use as release-checklist

Workflow checklist

jh-RLI avatar May 10 '23 15:05 jh-RLI

from memory:

on production, in main folder, with activated virtualenv


git checkout master # or release/xxx

pip install -r requirements.txt
python manage.py mirror
python manage.py clear_sandbox
python manage.py migrate
python manage.py alembic upgrade head
python manage.py collectstatic

sudo systemctl reload apache2

wingechr avatar May 11 '23 10:05 wingechr

@adelmemariani can you approve this?

jh-RLI avatar May 11 '23 10:05 jh-RLI

Yes :)

adelmemariani avatar May 22 '23 14:05 adelmemariani

from memory:

on production, in main folder, with activated virtualenv

git checkout master # or release/xxx

pip install -r requirements.txt
python manage.py mirror
python manage.py clear_sandbox
python manage.py migrate
python manage.py alembic upgrade head
python manage.py collectstatic

sudo systemctl reload apache2

on TOEP also this management command should be excecuted python manage.py clear_peer_reviews --all This should not be executed on OEP (we dont want to delete all existing reviewer once they are in production)

jh-RLI avatar Jun 12 '23 08:06 jh-RLI

Two new management commands that should alsoe be part of the release procedure:

https://github.com/OpenEnergyPlatform/oeplatform/issues/1297

jh-RLI avatar Jul 06 '23 11:07 jh-RLI

I have found another step that is missing in our current release procedure. We have introduced the citation.cff file, which also contains a version. This should be updated every time a release is made. It would be great if the version could be imported automatically from the VERSION file so we don't have to maintain multiple version identifiers.

jh-RLI avatar Aug 08 '23 11:08 jh-RLI

From now on for each release we have to run the command:

python manage.py compress

jh-RLI avatar Aug 21 '23 14:08 jh-RLI