Skip to content

Deploying a lamassu machine fork

naconner edited this page Jul 8, 2020 · 2 revisions

Note

Lamassu provides technical support for our default software and installation, but cannot provide support for customisation or deploying changes. Notes here and elsewhere are provided as a courtesy.

Obtain a terminal

Connect a USB keyboard to your machine's computer board, and press Ctrl+Alt+T.

Elevate to the root user by running:

sudo su

Use the password provided by our support team.

Deploying

supervisorctl stop all
cd /opt
mv lamassu-machine lamassu-machine-orig
git clone https://github.com/your-user/lamassu-machine.git
cd lamassu-machine
git checkout your-branch

Copy over stuff

mkdir -p data/log
mkdir -p ui/css/fonts
cp -r ../lamassu-machine-orig/ui/css/fonts ui/css/fonts
cp -r ../lamassu-machine-orig/node_modules .
cp ../lamassu-machine-orig/licenses.json .
cp ../lamassu-machine-orig/device_config.json .

Build the UI and run new code changes

cd /tmp
sudo npm install node-sass 
cp -r node_modules/* /opt/lamassu-machine/node_modules/
cd /opt/lamassu-machine
npm run build
supervisorctl start all