/services

Primary LanguageShell

kcapp logo

services

systemd service files to install kcapp to run along side other services

Install

To use these scripts create the following in /usr/local/bin/

#!/bin/bash
export SLACK_KEY="<slack_key>"
export SLACK_CHANNEL="<channel>"
export ANNOUNCE=true

cd $KCAPP_ROOT/announcer
node kcapp-announcer.js <office_id>

Symlink api to /usr/loca/bin/kcapp-api

sudo ln -s $GOPATH/bin/kcapp-api /usr/local/bin
#!/bin/bash
cd $KCAPP_ROOT/frontend
DEBUG=kcapp:* npm start &>> log/kcapp.log
#!/bin/bash
cd $KCAPP_ROOT/colors
RED=27 GREEN=17 BLUE=22 KCAPP_API=<HOST> PORT=<PORT> DEBUG=kcapp* npm start
#!/bin/bash
cd $KCAPP_ROOT/nfc
DEBUG=kcapp* npm start
KCAPP_API=<HOST> PORT=<PORT> VENUE_ID=<VENUE_ID> DEBUG=kcapp* npm start