From d576f7d4151629061257cc0ca5b2673fd7d79e24 Mon Sep 17 00:00:00 2001 From: Daniel Cortes Date: Wed, 3 Jun 2020 08:04:09 -0400 Subject: [PATCH] --noinput es necesario en algunos comandos de deploy y migraciones no estaban incluidas --- deploy.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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