diff --git a/centos.conf b/centos.conf index d9a475d..602685b 100755 --- a/centos.conf +++ b/centos.conf @@ -35,7 +35,7 @@ SERVICE="app.service" # Descrição do serviço no Systemctl # Systemctl service description -DESCRIPTION="Django VPS" +DESCRIPTION="Django VPS uWSGI Emperor" # Adicionar o certificado digital na aplicação com Certbot. Escreva sim, se já possuir um domínio na internet # Apply certbot ssl certificate, hit yes if you already have a domain diff --git a/run.sh b/run.sh index be6afbe..a611829 100755 --- a/run.sh +++ b/run.sh @@ -47,7 +47,7 @@ SERVICE="app.service" # Descrição do serviço no Systemctl # Systemctl service description -DESCRIPTION="Django VPS" +DESCRIPTION="Django VPS uWSGI Emperor" # Adicionar o certificado digital na aplicação com Certbot. Escreva sim, se já possuir um domínio na internet # Apply certbot ssl certificate, hit yes if you already have a domain @@ -290,7 +290,7 @@ update_debug() { # Install required packages install_packages() { dnf config-manager --set-enabled crb - dnf update -y && + dnf update && yum -y install vim && yum -y install epel-release && yum -y install bind-utils && @@ -319,6 +319,7 @@ create_venv() { # Install project dependencies install_dependencies() { /home/$USERNAME/$APP/$VENV/bin/pip3 install --upgrade pip && + /home/$USERNAME/$APP/$VENV/bin/pip3 install uwsgi && /home/$USERNAME/$APP/$VENV/bin/pip3 install -r /home/$USERNAME/$APP/requirements.txt if [[ $? -ge 1 ]]; then update_step_error "$x" @@ -364,22 +365,57 @@ enable_ports() { fi } +# Corrigir a configuração inicial do nginx +# Manage default nginx config file +manage_default_nginx_file() { + mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf~ && + cat > /etc/nginx/nginx.conf < /etc/nginx/conf.d/$APP.conf < /home/$USERNAME/$APP/uwsgi.ini < /usr/local/bin/$SERVICE.sh <