From 3f4bf977a97993d0cd82eb0cd4ec413d645450d8 Mon Sep 17 00:00:00 2001 From: Israel Figueroa Date: Wed, 29 Apr 2020 15:33:29 -0400 Subject: [PATCH] fixes varios --- Setup.sh | 6 +++--- web-interface/templates/layout.html | 4 ++-- webinterface.service.sample | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Setup.sh b/Setup.sh index 3b84b8d..9e1a4ea 100644 --- a/Setup.sh +++ b/Setup.sh @@ -2,7 +2,7 @@ apt update apt upgrade -apt install -y neofetch fortunes vim python3-pip gunicorn git +apt install -y neofetch fortune-mod vim python3-pip git echo "" > /etc/motd @@ -11,10 +11,10 @@ echo "neofetch" >> /etc/bash.bashrc echo "/usr/games/fortune" >> /etc/bash.bashrc echo "set mouse=" >> /etc/vim/vimrc -git clone https://dev.ilab.cl/git/pythonweb.git /srv +git clone https://dev.ilab.cl/git/public/pythonweb.git /srv cd /srv -pip3 install setuptools +pip3 install setuptools gunicorn pip3 install -r web-interface/requirements.txt systemctl stop webinterface.service diff --git a/web-interface/templates/layout.html b/web-interface/templates/layout.html index cfd5223..5f9ff9e 100644 --- a/web-interface/templates/layout.html +++ b/web-interface/templates/layout.html @@ -12,9 +12,9 @@ {% if title %} - Flask Site - {{ title }} + Flask iLab Site - {{ title }} {% else %} - Flask Site + Flask iLab Site {% endif %} diff --git a/webinterface.service.sample b/webinterface.service.sample index 7d2290d..29cd7c2 100644 --- a/webinterface.service.sample +++ b/webinterface.service.sample @@ -5,7 +5,7 @@ After=network.target [Service] User=root WorkingDirectory=/srv/web-interface -ExecStart=/usr/bin/gunicorn -b 0.0.0.0:80 wsgi:app +ExecStart=/usr/local/bin/gunicorn -b 0.0.0.0:80 wsgi:app Restart=always [Install]