pslockout/webserver
2019-05-25 15:46:57 -06:00
..
.gitignore Inital commit 2018-02-01 23:46:44 -07:00
package-lock.json Sync tool status across all clients 2018-02-03 19:59:39 -07:00
package.json Integrate login and auth server API 2018-11-13 02:45:16 -07:00
README.md Add instructions for setting up supervisor 2019-05-25 15:46:57 -06:00
server.js Improve logging on the web server 2019-05-23 14:27:01 -06:00
yarn.lock Integrate login and auth server API 2018-11-13 02:45:16 -07:00

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=/bin/bash -c 'yarn start'
autostart=true
autorestart=true
stderr_logfile=/var/log/webserver.log
stderr_logfile_maxbytes=1MB
stdout_logfile=/var/log/webserver.log
stdout_logfile_maxbytes=1MB