Gunicorn Flask Systemd

Creado: Noviembre 5, 2020

Instalación rápida de Gunicorn utilizando Systemd

Introducción

Creamos un servicio, en este caso se llamara como mi blog.

[alberto@barrahome barrahome-flask]$ sudo nano /etc/systemd/system/barrahome.service

Agregamos el siguiente contenido:

[Unit]
Description=Barrahome web application
After=network.target

[Service]
User=alberto
Group=alberto
WorkingDirectory=/home/alberto/barrahome-flask
ExecStart=/usr/bin/python3 /usr/bin/gunicorn --bind 0.0.0.0:8000 boot:app

[Install]
WantedBy=multi-user.target
Leer artículo...