fixes varios
parent
c6439f6687
commit
3f4bf977a9
6
Setup.sh
6
Setup.sh
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
apt update
|
apt update
|
||||||
apt upgrade
|
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
|
echo "" > /etc/motd
|
||||||
|
|
||||||
|
@ -11,10 +11,10 @@ echo "neofetch" >> /etc/bash.bashrc
|
||||||
echo "/usr/games/fortune" >> /etc/bash.bashrc
|
echo "/usr/games/fortune" >> /etc/bash.bashrc
|
||||||
echo "set mouse=" >> /etc/vim/vimrc
|
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
|
cd /srv
|
||||||
pip3 install setuptools
|
pip3 install setuptools gunicorn
|
||||||
pip3 install -r web-interface/requirements.txt
|
pip3 install -r web-interface/requirements.txt
|
||||||
|
|
||||||
systemctl stop webinterface.service
|
systemctl stop webinterface.service
|
||||||
|
|
|
@ -12,9 +12,9 @@
|
||||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css') }}">
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css') }}">
|
||||||
|
|
||||||
{% if title %}
|
{% if title %}
|
||||||
<title>Flask Site - {{ title }}</title>
|
<title>Flask iLab Site - {{ title }}</title>
|
||||||
{% else %}
|
{% else %}
|
||||||
<title>Flask Site</title>
|
<title>Flask iLab Site</title>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -5,7 +5,7 @@ After=network.target
|
||||||
[Service]
|
[Service]
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/srv/web-interface
|
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
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Reference in New Issue