fix: static folder name

This commit is contained in:
Lucas F. 2024-02-02 15:26:44 -03:00
parent ad4f8b51b2
commit a43b330a5c

2
run.sh
View file

@ -329,7 +329,7 @@ install_dependencies() {
# Coletar arquivos estáticos, criar tabelas e criar super usuário # Coletar arquivos estáticos, criar tabelas e criar super usuário
# Perform collectstatic, migrate and createsuperuser # Perform collectstatic, migrate and createsuperuser
execute_collec_mig_createsup() { execute_collec_mig_createsup() {
mkdir -p /home/$USERNAME/$APP/staticfiles && mkdir -p /home/$USERNAME/$APP/static &&
/home/$USERNAME/$APP/$VENV/bin/python3 /home/$USERNAME/$APP/manage.py collectstatic --noinput && /home/$USERNAME/$APP/$VENV/bin/python3 /home/$USERNAME/$APP/manage.py collectstatic --noinput &&
/home/$USERNAME/$APP/$VENV/bin/python3 /home/$USERNAME/$APP/manage.py migrate /home/$USERNAME/$APP/$VENV/bin/python3 /home/$USERNAME/$APP/manage.py migrate
if [[ $? -ge 1 ]]; then if [[ $? -ge 1 ]]; then