|
|
@ -329,7 +329,7 @@ install_dependencies() { |
|
|
|
# Coletar arquivos estáticos, criar tabelas e criar super usuário |
|
|
|
# Perform collectstatic, migrate and createsuperuser |
|
|
|
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 migrate |
|
|
|
if [[ $? -ge 1 ]]; then |
|
|
|