diff --git a/deploy.sh b/deploy.sh index 798f4fd..4f434a2 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,13 +1,20 @@ #!/usr/bin/env sh set -eu -# If venv doesnt exists +# If venv doesnt exists create it [ -d venv/ ] || python3 -m venv venv # Activate venv . venv/bin/activate # Install all requirements pip install -r requirements.txt + + # Collect static files -./manage.py collectstatic +./manage.py collectstatic --noinput + +# Migrate +./manage.py makemigrations --noinput +./manage.py migrate --noinput + # Restart systemctl unit sudo /bin/systemctl restart musiclist \ No newline at end of file