Fix for permissions

This commit is contained in:
Walter 2025-02-21 01:23:53 +01:00
parent 4971917417
commit 8277bad474
2 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,9 @@
#!/bin/sh #!/bin/sh
python wait_for_db.py python wait_for_db.py
#chown -R app:app $APP_HOME
chown app:app $APP_HOME/media
chown app:app $APP_HOME/static
python manage.py makemigrations python manage.py makemigrations
python manage.py migrate python manage.py migrate
python manage.py collectstatic --noinput python manage.py collectstatic --noinput

4
update.sh Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
git pull origin master --ff-only
docker compose down --remove-orphans && docker compose up -d