fixes varios
parent
c6439f6687
commit
3f4bf977a9
6
Setup.sh
6
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
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css') }}">
|
||||
|
||||
{% if title %}
|
||||
<title>Flask Site - {{ title }}</title>
|
||||
<title>Flask iLab Site - {{ title }}</title>
|
||||
{% else %}
|
||||
<title>Flask Site</title>
|
||||
<title>Flask iLab Site</title>
|
||||
{% endif %}
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue