From dd0e01218291ac82eb1f6224101e4b1365abd091 Mon Sep 17 00:00:00 2001 From: oufmilo <44617467+oufmilo@users.noreply.github.com> Date: Mon, 6 Feb 2023 10:54:01 +0100 Subject: [PATCH] test --- scripts/upgrade | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 59a328b..05c1100 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -109,11 +109,12 @@ ynh_script_progression --message="Upgrading database..." --weight=1 pushd "$final_path" docker-compose build - $final_path/venv/bin/python3 "$final_path/manage.py" migrate - $final_path/venv/bin/python3 "$final_path/manage.py" collectstatic --no-input - $final_path/venv/bin/python3 "$final_path/manage.py" populate_streams + docker-compose run --rm web python manage.py migrate + docker-compose run --rm web python manage.py compile_themes + docker-compose run --rm web python manage.py collectstatic --no-input docker-compose down docker-compose up -d + docker-compose run --rm web python manage.py populate_streams popd #=================================================