|
@ -323,7 +323,7 @@ install_dependencies() { |
|
|
execute_collec_mig_createsup() { |
|
|
execute_collec_mig_createsup() { |
|
|
mkdir -p /home/$USERNAME/$APP/staticfiles && |
|
|
mkdir -p /home/$USERNAME/$APP/staticfiles && |
|
|
/home/$USERNAME/$APP/$VENV/bin/python3 /manage.py collectstatic --noinput && |
|
|
/home/$USERNAME/$APP/$VENV/bin/python3 /manage.py collectstatic --noinput && |
|
|
/home/$USERNAME/$APP/$VENV/bin/python3 /manage.py migrate && |
|
|
/home/$USERNAME/$APP/$VENV/bin/python3 /manage.py migrate |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# Instala o firewall |
|
|
# Instala o firewall |
|
@ -540,7 +540,7 @@ declare -a commands=( |
|
|
"install_packages" |
|
|
"install_packages" |
|
|
"create_venv" |
|
|
"create_venv" |
|
|
"install_dependencies" |
|
|
"install_dependencies" |
|
|
"execute_collec_mig_createsup", |
|
|
"execute_collec_mig_createsup" |
|
|
"install_firewall" |
|
|
"install_firewall" |
|
|
"enable_ports" |
|
|
"enable_ports" |
|
|
"manage_default_nginx_file" |
|
|
"manage_default_nginx_file" |
|
|