--noinput es necesario en algunos comandos de deploy y migraciones no

estaban incluidas
This commit is contained in:
Daniel Cortes
2020-06-03 08:04:09 -04:00
parent f4c8935802
commit d576f7d415

View File

@@ -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