You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Tanner Collin 23cab66f83 Fix supervisor stopping issue 5 years ago
..
.gitignore Inital commit 6 years ago
README.md Fix supervisor stopping issue 5 years ago
package-lock.json Sync tool status across all clients 6 years ago
package.json Integrate login and auth server API 6 years ago
server.js Improve logging on the web server 5 years ago
yarn.lock Integrate login and auth server API 6 years ago

README.md

Protospace lockout socket server

Runs on a server. Connects to web clients over web sockets and receives updates from all lockouts.

Setup

Supervisor

Supervisor is used to keep the script always running.

$ sudo apt install supervisor

Create a file named /etc/supervisor/conf.d/webserver.conf and add:

[program:webserver]
user=tanner
directory=/opt/pslockout/pslockout/webserver
command=yarn start
stopasgroup=true
autostart=true
autorestart=true
stderr_logfile=/var/log/webserver.log
stderr_logfile_maxbytes=1MB
stdout_logfile=/var/log/webserver.log
stdout_logfile_maxbytes=1MB