LBRY Block Explorer

LBRY Claims • supervisor-para-nuestro-api-rest-de

823a4dd2d5608111a409c9a0d9297471d8b1bb78

Published By
Created On
14 Mar 2023 18:08:47 UTC
Transaction ID
Cost
Safe for Work
Free
Yes
Supervisor para nuestro API REST de NodeJS
Instalar el paquete supervisor:
apt -y install supervisor


Creamos el fichero de configuración:
vi /etc/supervisor/conf.d/nodejs-app.conf


Agregamos este contenido:
[program:nodejs-app]
process_name=%(program_name)s_%(process_num)02d
command=/usr/bin/node /home/cloudpanel/htdocs/cloud01.evalum.com/start.js
numprocs=1
user=prueba-ssh
autostart=true
autorestart=true
stopsignal=KILL
stdout_logfile=/var/log/supervisor/nodejs-app.log

Actualizar la configuración de supervisor y ejecutar la app de nodejs:
supervisorctl reread
supervisorctl update
supervisorctl start nodejs-app:*
...
https://www.youtube.com/watch?v=R8P36HsB9GM
Author
Content Type
Unspecified
video/mp4
Language
Open in LBRY

More from the publisher

Controlling
VIDEO
#37 S
Controlling
VIDEO
NOVED
Controlling
VIDEO
#43 W
Controlling
VIDEO
CREAN
Controlling
VIDEO
MODIF
Controlling
VIDEO
#29 W
Controlling
VIDEO
#2 IN
Controlling
VIDEO
#21 W
Controlling
VIDEO
#11 E