--noinput es necesario en algunos comandos de deploy y migraciones no
estaban incluidas
This commit is contained in:
11
deploy.sh
11
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
|
||||
Reference in New Issue
Block a user